diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c index 3273dd1795..ec33c492f4 100644 --- a/libavcodec/qdm2.c +++ b/libavcodec/qdm2.c @@ -1356,6 +1356,8 @@ static void qdm2_fft_decode_tones (QDM2Context *q, int duration, GetBitContext * return; local_int_14 = (offset >> local_int_8); + if (local_int_14 >= FF_ARRAY_ELEMS(fft_level_index_table)) + return; if (q->nb_channels > 1) { channel = get_bits1(gb);