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
This commit is contained in:
reimar 2010-01-11 20:29:33 +00:00
parent 33bc71f10d
commit e8dded6d4f
1 changed files with 1 additions and 7 deletions

View File

@ -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;