Fix 2 bit allocation bugs. One fix enables using a higher bandwidth code. The other...
authorJustin Ruggles <justin.ruggles@gmail.com>
Sun, 3 Sep 2006 15:59:08 +0000 (15:59 +0000)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sun, 3 Sep 2006 15:59:08 +0000 (15:59 +0000)
Originally committed as revision 6156 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ac3enc.c
libavcodec/ac3tab.h

index 5ec8b4f..aac6a57 100644 (file)
@@ -804,7 +804,7 @@ void ac3_common_init(void)
         for(j=0;j<v;j++) masktab[k++]=i;
         l += v;
     }
-    bndtab[50] = 0;
+    bndtab[50] = l;
 }
 
 
index d8771fb..7232ca6 100644 (file)
@@ -160,7 +160,7 @@ static const uint16_t dbkneetab[4]= {
     0x000, 0x700, 0x900, 0xb00,
 };
 
-static const uint16_t floortab[8]= {
+static const int16_t floortab[8]= {
     0x2f0, 0x2b0, 0x270, 0x230, 0x1f0, 0x170, 0x0f0, 0xf800,
 };