changeset 3668:34d76180e5d0
libavcodec
Fix 2 bit allocation bugs. One fix enables using a higher bandwidth code. The other fixes an issue with floorcod=7.
author |
jbr |
date |
Sun, 03 Sep 2006 15:59:08 +0000 |
parents |
56e60411527c |
children |
9b98e18a1b1c |
files |
ac3enc.c ac3tab.h |
diffstat |
2 files changed, 2 insertions(+), 2 deletions(-)
[+]
|
line diff
--- a/ac3enc.c Sun Sep 03 04:44:50 2006 +0000
+++ b/ac3enc.c Sun Sep 03 15:59:08 2006 +0000
@@ -804,7 +804,7 @@
for(j=0;j<v;j++) masktab[k++]=i;
l += v;
}
- bndtab[50] = 0;
+ bndtab[50] = l;
}
--- a/ac3tab.h Sun Sep 03 04:44:50 2006 +0000
+++ b/ac3tab.h Sun Sep 03 15:59:08 2006 +0000
@@ -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,
};