# HG changeset patch # User reimar # Date 1300535612 0 # Node ID e2382d88fb7f0413945db994fabde9034f993add # Parent 4aeda8386f66f198f18b23f34636dcdc433e9e00 FFmpeg's AC-3 decoder will do byte-swapping on its own, so no more need for us to do it here. diff -r 4aeda8386f66 -r e2382d88fb7f libmpcodecs/ad_ffmpeg.c --- 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 #include #include @@ -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;