diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index 5ec8b4f5ac6ea53db60199e79fa45e4bd7aa9216..aac6a578fd129d1c0da807b4d6afa6046aacccf3 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -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; } diff --git a/libavcodec/ac3tab.h b/libavcodec/ac3tab.h index d8771fbeee82eeb92f9505c9ac2d2b81819deced..7232ca6a41f8bb6613ca2d222c7f97a3c205ad15 100644 --- a/libavcodec/ac3tab.h +++ b/libavcodec/ac3tab.h @@ -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, };