# HG changeset patch # User reimar # Date 1263241773 0 # Node ID 03c1ad03f29de0b3c9f3ada2cc4f34e023b9b25e # Parent 02b9c1a452e1003ca503676e20915cdc94c46e9a MPlayer's format now correctly identifies AC3 as either little- or big-endian, remove unnecessary special workaround. diff -r 02b9c1a452e1 -r 03c1ad03f29d libao2/ao_coreaudio.c --- 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;