On 11/03/2011 09:32 PM, Alex Converse wrote:

> ---
>  libavcodec/binkaudio.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/libavcodec/binkaudio.c b/libavcodec/binkaudio.c
> index a90467a..f25e8a7 100644
> --- a/libavcodec/binkaudio.c
> +++ b/libavcodec/binkaudio.c
> @@ -202,7 +202,7 @@ static int decode_block(BinkAudioContext *s, int16_t 
> *out, int use_dct)
>              return AVERROR_INVALIDDATA;
>          for (i = 0; i < s->num_bands; i++) {
>              int value = get_bits(gb, 8);
> -            quant[i]  = quant_table[FFMIN(value, 95)];
> +            quant[i]  = quant_table[FFMIN(value, 94)];


the table needs to be expanded by 1 instead. this was my error when
converting it to a pre-calculated table.

-Justin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to