changeset 30236:cb2e10d85c04

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.
author reimar
date Mon, 11 Jan 2010 19:37:50 +0000
parents 53c43f683cd7
children 9584cf67cea0
files libaf/format.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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