[Ffmpeg-cvslog] r6156 - in trunk/libavcodec: ac3enc.c ac3tab.h

jbr subversion
Sun Sep 3 17:59:09 CEST 2006


Author: jbr
Date: Sun Sep  3 17:59:08 2006
New Revision: 6156

Modified:
   trunk/libavcodec/ac3enc.c
   trunk/libavcodec/ac3tab.h

Log:
Fix 2 bit allocation bugs.  One fix enables using a higher bandwidth code.  The other fixes an issue with floorcod=7.

Modified: trunk/libavcodec/ac3enc.c
==============================================================================
--- trunk/libavcodec/ac3enc.c	(original)
+++ trunk/libavcodec/ac3enc.c	Sun Sep  3 17:59:08 2006
@@ -804,7 +804,7 @@
         for(j=0;j<v;j++) masktab[k++]=i;
         l += v;
     }
-    bndtab[50] = 0;
+    bndtab[50] = l;
 }
 
 

Modified: trunk/libavcodec/ac3tab.h
==============================================================================
--- trunk/libavcodec/ac3tab.h	(original)
+++ trunk/libavcodec/ac3tab.h	Sun Sep  3 17:59:08 2006
@@ -160,7 +160,7 @@
     0x000, 0x700, 0x900, 0xb00,
 };
 
-static const uint16_t floortab[8]= {
+static const int16_t floortab[8]= {
     0x2f0, 0x2b0, 0x270, 0x230, 0x1f0, 0x170, 0x0f0, 0xf800,
 };
 




More information about the ffmpeg-cvslog mailing list