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

Originally committed as revision 6156 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Justin Ruggles 19 years ago
parent 7494517673
commit 1df051e197
  1. 2
      libavcodec/ac3enc.c
  2. 2
      libavcodec/ac3tab.h

@ -804,7 +804,7 @@ void ac3_common_init(void)
for(j=0;j<v;j++) masktab[k++]=i; for(j=0;j<v;j++) masktab[k++]=i;
l += v; l += v;
} }
bndtab[50] = 0; bndtab[50] = l;
} }

@ -160,7 +160,7 @@ static const uint16_t dbkneetab[4]= {
0x000, 0x700, 0x900, 0xb00, 0x000, 0x700, 0x900, 0xb00,
}; };
static const uint16_t floortab[8]= { static const int16_t floortab[8]= {
0x2f0, 0x2b0, 0x270, 0x230, 0x1f0, 0x170, 0x0f0, 0xf800, 0x2f0, 0x2b0, 0x270, 0x230, 0x1f0, 0x170, 0x0f0, 0xf800,
}; };

Loading…
Cancel
Save