Commit 1b4f74ff authored by Marton Balint's avatar Marton Balint

avcodec/scpr: fix checking ret value of decode_run_i

Fixes Coverity CID 1441460.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent f9271d01
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment