[FFmpeg-cvslog] avcodec/scpr: fix checking ret value of decode_run_i

Marton Balint git at videolan.org
Fri May 24 23:43:50 EEST 2019


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Thu May 23 21:45:29 2019 +0200| [1b4f74ffe2353270e5c23ebf747104f50ee92eb7] | committer: Marton Balint

avcodec/scpr: fix checking ret value of decode_run_i

Fixes Coverity CID 1441460.

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1b4f74ffe2353270e5c23ebf747104f50ee92eb7
---

 libavcodec/scpr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
     }
 



More information about the ffmpeg-cvslog mailing list