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:
reimar 2010-01-11 19:37:50 +00:00
parent 10321db5c0
commit 76feee19c4
1 changed files with 1 additions and 0 deletions

View File

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