diff options
author | Christophe Gisquet <christophe.gisquet@gmail.com> | 2015-03-14 11:48:57 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-29 03:34:23 +0200 |
commit | 40dab450503125f22a82cebf03453b2bdd65d748 (patch) | |
tree | dfb20add6f50dbf634f264ee1b9b0e8e5105ab84 | |
parent | f45f3f99a4d92099c710f9547abfd33da4af1d40 (diff) | |
download | ffmpeg-40dab450503125f22a82cebf03453b2bdd65d748.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 969e37ffb8..80b93946f6 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; |