You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/scpr3: add missing check for decode_value3() return value
Fixes ticket #7866. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -1038,6 +1038,9 @@ static int decompress_p3(AVCodecContext *avctx,
|
||||
s->range_model3.freqs[1],
|
||||
s->range_model3.cnts,
|
||||
s->range_model3.dectab, &temp);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
min += temp << 8;
|
||||
ret |= decode_value3(s, 255, &s->range_model3.cntsum,
|
||||
s->range_model3.freqs[0],
|
||||
|
Reference in New Issue
Block a user