From 8b271d49ec6b723b026ee8c1e5156f6e0ff920ac Mon Sep 17 00:00:00 2001 From: diego Date: Fri, 8 Oct 2010 08:56:20 +0000 Subject: ao_coreaudio: byteswap AC-3 streams on little-endian patch by Sean McGovern, gseanmcg gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32450 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_coreaudio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libao2/ao_coreaudio.c b/libao2/ao_coreaudio.c index b98a5f5834..d4835e87ad 100644 --- a/libao2/ao_coreaudio.c +++ b/libao2/ao_coreaudio.c @@ -788,6 +788,10 @@ static int OpenSPDIF(void) #if HAVE_BIGENDIAN if (!(ao->stream_format.mFormatFlags & kAudioFormatFlagIsBigEndian)) #else + /* tell mplayer that we need a byteswap on AC3 streams, */ + if (ao->stream_format.mFormatID & kAudioFormat60958AC3) + ao_data.format = AF_FORMAT_AC3_LE; + if (ao->stream_format.mFormatFlags & kAudioFormatFlagIsBigEndian) #endif ao_msg(MSGT_AO, MSGL_WARN, -- cgit v1.2.3