1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 17:42:17 +00:00

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

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;