diff options
author | Christophe Gisquet <christophe.gisquet@gmail.com> | 2015-03-14 11:48:57 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-21 01:52:52 +0100 |
commit | c657b08fd76a5d09bb36db13dedca839b5bc1ede (patch) | |
tree | 129a4118c646a070ad7c4d2bb8d98a679ad3e0e8 | |
parent | 6d14bea8b56866b45453ba2c5c5202852fad39eb (diff) | |
download | ffmpeg-c657b08fd76a5d09bb36db13dedca839b5bc1ede.tar.gz |
ac3_fixed: fix out-of-bound read
Should also improve decoding, but actually doesn't...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit b0834400608b3980c06bf6d2cf747116e60d10c7)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/ac3dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index d3e8713e03..19903ee16f 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -872,7 +872,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk) start_subband += start_subband - 7; end_subband = get_bits(gbc, 3) + 5; #if USE_FIXED - s->spx_dst_end_freq = end_freq_inv_tab[end_subband]; + s->spx_dst_end_freq = end_freq_inv_tab[end_subband-5]; #endif if (end_subband > 7) end_subband += end_subband - 7; |