changeset 32997:e2382d88fb7f

FFmpeg's AC-3 decoder will do byte-swapping on its own, so no more need for us to do it here.
author reimar
date Sat, 19 Mar 2011 11:53:32 +0000
parents 4aeda8386f66
children 7de25b2a687e
files libmpcodecs/ad_ffmpeg.c
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_ffmpeg.c	Fri Mar 18 14:48:54 2011 +0000
+++ b/libmpcodecs/ad_ffmpeg.c	Sat Mar 19 11:53:32 2011 +0000
@@ -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 @@
 	    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;