[MPlayer-cvslog] r32450 - trunk/libao2/ao_coreaudio.c
diego
subversion at mplayerhq.hu
Fri Oct 8 10:56:21 CEST 2010
Author: diego
Date: Fri Oct 8 10:56:20 2010
New Revision: 32450
Log:
AC-3 streams need to be byteswapped on little-endian machines.
patch by Sean McGovern, gseanmcg gmail com
Modified:
trunk/libao2/ao_coreaudio.c
Modified: trunk/libao2/ao_coreaudio.c
==============================================================================
--- trunk/libao2/ao_coreaudio.c Fri Oct 8 03:17:54 2010 (r32449)
+++ trunk/libao2/ao_coreaudio.c Fri Oct 8 10:56:20 2010 (r32450)
@@ -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,
More information about the MPlayer-cvslog
mailing list