mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/cfhd: Use the actual count instead of the expected in peak_table()
Fixes: out of array access (no testcase) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
2c1613ac94
commit
77429b4217
@ -697,7 +697,7 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
|
||||
goto end;
|
||||
}
|
||||
if (s->peak.level)
|
||||
peak_table(coeff_data - expected, &s->peak, expected);
|
||||
peak_table(coeff_data - count, &s->peak, count);
|
||||
if (s->difference_coding)
|
||||
difference_coding(s->plane[s->channel_num].subband[s->subband_num_actual], highpass_width, highpass_height);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user