mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 08:29:36 +00:00
Add a hack to af_fmt2bits to recognize AC3 as a 16-bit format, since this
is more correct than 8 bit for alignment purposes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30278 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
10321db5c0
commit
76feee19c4
@ -74,6 +74,7 @@ int af_str2fmt(const char* str)
|
||||
|
||||
int af_fmt2bits(int format)
|
||||
{
|
||||
if (AF_FORMAT_IS_AC3(format)) return 16;
|
||||
return (format & AF_FORMAT_BITS_MASK)+8;
|
||||
// return (((format & AF_FORMAT_BITS_MASK)>>3)+1) * 8;
|
||||
#if 0
|
||||
|
Loading…
Reference in New Issue
Block a user