mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +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:
parent
33bc71f10d
commit
e8dded6d4f
@ -328,13 +328,7 @@ int b_alive;
|
|||||||
// unsigned int
|
// unsigned int
|
||||||
inDesc.mFormatFlags = kAudioFormatFlagIsPacked;
|
inDesc.mFormatFlags = kAudioFormatFlagIsPacked;
|
||||||
}
|
}
|
||||||
if (AF_FORMAT_IS_AC3(format)) {
|
if ((format & AF_FORMAT_END_MASK) == AF_FORMAT_BE)
|
||||||
// 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)
|
|
||||||
inDesc.mFormatFlags |= kAudioFormatFlagIsBigEndian;
|
inDesc.mFormatFlags |= kAudioFormatFlagIsBigEndian;
|
||||||
|
|
||||||
inDesc.mFramesPerPacket = 1;
|
inDesc.mFramesPerPacket = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user