mirror of https://github.com/mpv-player/mpv
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:
parent
374eb4f188
commit
8b271d49ec
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue