1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avcodec/scpr: avoid using uninitialized value

Fixes #7872.
This commit is contained in:
Paul B Mahol 2019-04-28 11:06:36 +02:00
parent 5840a7f8a6
commit ea80af659c

View File

@ -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;