# HG changeset patch # User reimar # Date 1263238670 0 # Node ID cb2e10d85c04d7c5360e3f360a41a0bb641b0f62 # Parent 53c43f683cd737106d278f51b971598edba7a906 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. diff -r 53c43f683cd7 -r cb2e10d85c04 libaf/format.c --- a/libaf/format.c Mon Jan 11 19:26:33 2010 +0000 +++ b/libaf/format.c Mon Jan 11 19:37:50 2010 +0000 @@ -74,6 +74,7 @@ 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