Commit b0834400 authored by Christophe Gisquet's avatar Christophe Gisquet Committed by Michael Niedermayer

ac3_fixed: fix out-of-bound read

Should also improve decoding, but actually doesn't...
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 15ce1601
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment