aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2019-05-23 21:45:29 +0200
committerMarton Balint <cus@passwd.hu>2019-05-24 21:39:07 +0200
commit1b4f74ffe2353270e5c23ebf747104f50ee92eb7 (patch)
tree303e3a2b0a6c3c3c7d083f5196aebc36541fe049 /libavcodec
parentf9271d0158122c9e043b7d83f691884b65ec1ba5 (diff)
downloadffmpeg-1b4f74ffe2353270e5c23ebf747104f50ee92eb7.tar.gz
avcodec/scpr: fix checking ret value of decode_run_i
Fixes Coverity CID 1441460. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/scpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/scpr.c b/libavcodec/scpr.c
index 10fc994ecf..317950dafb 100644
--- a/libavcodec/scpr.c
+++ b/libavcodec/scpr.c
@@ -359,7 +359,7 @@ static int decompress_i(AVCodecContext *avctx, uint32_t *dst, int linesize)
ret = decode_run_i(avctx, ptype, run, &x, &y, clr,
dst, linesize, &lx, &ly,
backstep, off, &cx, &cx1);
- if (run < 0)
+ if (ret < 0)
return ret;
}