diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2017-07-06 13:47:42 -0400 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2017-07-07 15:25:46 -0400 |
commit | f7daed854532628c5e83fb7a5da04ae8916379ff (patch) | |
tree | f47e71c69ce224fc369134ebd60f90b92fef6b14 /libavcodec/scpr.c | |
parent | 704b774ae0290dd8f2f30ba7c6f7427d0c6180c6 (diff) | |
download | ffmpeg-f7daed854532628c5e83fb7a5da04ae8916379ff.tar.gz |
scpr: Added missing error check
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/scpr.c')
-rw-r--r-- | libavcodec/scpr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/scpr.c b/libavcodec/scpr.c index f6d1e45692..37fbe7a106 100644 --- a/libavcodec/scpr.c +++ b/libavcodec/scpr.c @@ -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) |