Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2017-07-06 20:47:42 +0300
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2017-07-07 22:25:46 +0300
commitf7daed854532628c5e83fb7a5da04ae8916379ff (patch)
treef47e71c69ce224fc369134ebd60f90b92fef6b14 /libavcodec/scpr.c
parent704b774ae0290dd8f2f30ba7c6f7427d0c6180c6 (diff)
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.c2
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)