Browse Source

scpr: Added missing error check

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
tags/n3.4
Derek Buitenhuis 8 years ago
parent
commit
f7daed8545
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/scpr.c

+ 2
- 0
libavcodec/scpr.c View File

@@ -582,6 +582,8 @@ static int decompress_p(AVCodecContext *avctx,

for (; by < y * 16 + sy2 && by < avctx->height;) {
ret = decode_value(s, s->op_model[ptype], 6, 1000, &ptype);
if (ret < 0)
return ret;
if (ptype == 0) {
ret = decode_unit(s, &s->pixel_model[0][cx + cx1], 400, &r);
if (ret < 0)


Loading…
Cancel
Save