Mercurial > mplayer.hg
changeset 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 | 02b9c1a452e1 |
children | 05f085c36d5b |
files | libao2/ao_coreaudio.c |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
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;