[MPlayer-cvslog] r30278 - trunk/libaf/format.c
reimar
subversion at mplayerhq.hu
Mon Jan 11 20:37:51 CET 2010
Author: reimar
Date: Mon Jan 11 20:37:50 2010
New Revision: 30278
Log:
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.
Modified:
trunk/libaf/format.c
Modified: trunk/libaf/format.c
==============================================================================
--- trunk/libaf/format.c Mon Jan 11 20:26:33 2010 (r30277)
+++ trunk/libaf/format.c Mon Jan 11 20:37:50 2010 (r30278)
@@ -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
More information about the MPlayer-cvslog
mailing list