---
 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)];
         }
 
         k = 0;
-- 
1.7.3.1

I'm not sure if quant should be one bigger or the check should be one smaller.
I went with making the check 1 smaller and fate seems to pass. Do our bink gurus
have an opinion?
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to