aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2019-05-23 21:41:21 +0200
committerMarton Balint <cus@passwd.hu>2019-05-24 21:39:07 +0200
commitf811ac52284a01e32143d9ff4eec044254725a09 (patch)
treebbb8dcfb81f5c60d6a5966c634cf1efe8eaa1717
parent1b4f74ffe2353270e5c23ebf747104f50ee92eb7 (diff)
downloadffmpeg-f811ac52284a01e32143d9ff4eec044254725a09.tar.gz
avcodec/scpr3: fix checking ret value of decode_run_i
Fixes Coverity CID 1441461. Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--libavcodec/scpr3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/scpr3.c b/libavcodec/scpr3.c
index 5cfad9f4d2..b4d2e21a17 100644
--- a/libavcodec/scpr3.c
+++ b/libavcodec/scpr3.c
@@ -1007,7 +1007,7 @@ static int decompress_i3(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;
}