Mercurial > mplayer.hg
diff libao2/ao_coreaudio.c @ 30242:03c1ad03f29d
MPlayer's format now correctly identifies AC3 as either little- or big-endian,
remove unnecessary special workaround.
author | reimar |
---|---|
date | Mon, 11 Jan 2010 20:29:33 +0000 |
parents | 53c43f683cd7 |
children | 13b7aa964af6 |
line wrap: on
line diff
--- a/libao2/ao_coreaudio.c Mon Jan 11 20:27:52 2010 +0000 +++ b/libao2/ao_coreaudio.c Mon Jan 11 20:29:33 2010 +0000 @@ -328,13 +328,7 @@ // unsigned int inDesc.mFormatFlags = kAudioFormatFlagIsPacked; } - if (AF_FORMAT_IS_AC3(format)) { - // Currently ac3 input (comes from hwac3) is always in native byte-order. -#if HAVE_BIGENDIAN - inDesc.mFormatFlags |= kAudioFormatFlagIsBigEndian; -#endif - } - else if ((format & AF_FORMAT_END_MASK) == AF_FORMAT_BE) + if ((format & AF_FORMAT_END_MASK) == AF_FORMAT_BE) inDesc.mFormatFlags |= kAudioFormatFlagIsBigEndian; inDesc.mFramesPerPacket = 1;