[MPlayer-cvslog] r33084 - trunk/libmpcodecs/ad_ffmpeg.c

reimar subversion at mplayerhq.hu
Sat Mar 19 12:53:32 CET 2011


Author: reimar
Date: Sat Mar 19 12:53:32 2011
New Revision: 33084

Log:
FFmpeg's AC-3 decoder will do byte-swapping on its own, so no
more need for us to do it here.

Modified:
   trunk/libmpcodecs/ad_ffmpeg.c

Modified: trunk/libmpcodecs/ad_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/ad_ffmpeg.c	Fri Mar 18 15:48:54 2011	(r33083)
+++ trunk/libmpcodecs/ad_ffmpeg.c	Sat Mar 19 12:53:32 2011	(r33084)
@@ -16,7 +16,6 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _XOPEN_SOURCE 600
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -31,8 +30,6 @@
 #include "libaf/reorder_ch.h"
 #include "fmt-conversion.h"
 
-#include "mpbswap.h"
-
 static const ad_info_t info =
 {
 	"FFmpeg/libavcodec audio decoders",
@@ -221,9 +218,6 @@ static int decode_audio(sh_audio_t *sh_a
 	    int consumed = ds_parse(sh_audio->ds, &start, &x, pts, 0);
 	    sh_audio->ds->buffer_pos -= in_size - consumed;
 	}
-        if (((AVCodecContext *)sh_audio->context)->codec_id == CODEC_ID_AC3 &&
-            sh_audio->format == MKTAG('d', 'n', 'e', 't'))
-            swab(start, start, x & ~1);
 
 	av_init_packet(&pkt);
 	pkt.data = start;


More information about the MPlayer-cvslog mailing list