Commit ea80af65 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/scpr: avoid using uninitialized value

Fixes #7872.
parent 5840a7f8
......@@ -382,8 +382,11 @@ static int decompress_p(AVCodecContext *avctx,
ret = decode_value(s, s->range_model, 256, 1, &min);
ret |= decode_value(s, s->range_model, 256, 1, &temp);
if (ret < 0)
return ret;
min += temp << 8;
ret |= decode_value(s, s->range_model, 256, 1, &max);
ret = decode_value(s, s->range_model, 256, 1, &max);
ret |= decode_value(s, s->range_model, 256, 1, &temp);
if (ret < 0)
return ret;
......
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