Commit 938cb783 authored by James Almer's avatar James Almer

avcodec/scpr3: add missing check for decode_value3() return value

Fixes ticket #7866.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 163bb087
...@@ -1038,6 +1038,9 @@ static int decompress_p3(AVCodecContext *avctx, ...@@ -1038,6 +1038,9 @@ static int decompress_p3(AVCodecContext *avctx,
s->range_model3.freqs[1], s->range_model3.freqs[1],
s->range_model3.cnts, s->range_model3.cnts,
s->range_model3.dectab, &temp); s->range_model3.dectab, &temp);
if (ret < 0)
return ret;
min += temp << 8; min += temp << 8;
ret |= decode_value3(s, 255, &s->range_model3.cntsum, ret |= decode_value3(s, 255, &s->range_model3.cntsum,
s->range_model3.freqs[0], s->range_model3.freqs[0],
......
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