mirror of https://git.ffmpeg.org/ffmpeg.git
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 b083440060
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
480e18e6ff
commit
26bed98d64
|
@ -872,7 +872,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
|
||||||
start_subband += start_subband - 7;
|
start_subband += start_subband - 7;
|
||||||
end_subband = get_bits(gbc, 3) + 5;
|
end_subband = get_bits(gbc, 3) + 5;
|
||||||
#if USE_FIXED
|
#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
|
#endif
|
||||||
if (end_subband > 7)
|
if (end_subband > 7)
|
||||||
end_subband += end_subband - 7;
|
end_subband += end_subband - 7;
|
||||||
|
|
Loading…
Reference in New Issue