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
This commit is contained in:
diego 2010-10-08 08:56:20 +00:00 committed by Uoti Urpala
parent 374eb4f188
commit 8b271d49ec
1 changed files with 4 additions and 0 deletions

View File

@ -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,