From e8dded6d4fdec359fd8753c1893db2900d79dcb2 Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 11 Jan 2010 20:29:33 +0000 Subject: MPlayer's format now correctly identifies AC3 as either little- or big-endian, remove unnecessary special workaround. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30284 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_coreaudio.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libao2/ao_coreaudio.c b/libao2/ao_coreaudio.c index 6a481724fe..b60fb094e7 100644 --- a/libao2/ao_coreaudio.c +++ b/libao2/ao_coreaudio.c @@ -328,13 +328,7 @@ int b_alive; // 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; -- cgit v1.2.3