aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-11 20:29:33 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-11 20:29:33 +0000
commite8dded6d4fdec359fd8753c1893db2900d79dcb2 (patch)
treed6394ef83024846b409199b28218fef4f059bf60
parent33bc71f10d0218a99128b6a786357f8c60ba821e (diff)
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
-rw-r--r--libao2/ao_coreaudio.c8
1 files changed, 1 insertions, 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;