]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/scpr: fix checking ret value of decode_run_i
authorMarton Balint <cus@passwd.hu>
Thu, 23 May 2019 19:45:29 +0000 (21:45 +0200)
committerMarton Balint <cus@passwd.hu>
Fri, 24 May 2019 19:39:07 +0000 (21:39 +0200)
Fixes Coverity CID 1441460.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavcodec/scpr.c

index 10fc994ecfd081bca9d7a7c4ba2a823cb7b06391..317950dafbf130e770d076428d9d4cde77a52f33 100644 (file)
@@ -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;
     }