aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/fic.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-16 02:06:37 +0200
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2014-04-21 14:56:17 -0400
commit6f243b17c537646b894857d43dfdac65f85ab377 (patch)
tree120c55ce5a6fe35db2fbea4760530ad8522ac061 /libavcodec/fic.c
parent144f7a561d32ae9bc657a217e2b4c6dd9a0d7df9 (diff)
downloadffmpeg-6f243b17c537646b894857d43dfdac65f85ab377.tar.gz
avcodec/fic: Fix return value check
Fixes part of Ticket3466 Found-by: Andrey_Karpov / PVS-Studio Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/fic.c')
-rw-r--r--libavcodec/fic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/fic.c b/libavcodec/fic.c
index 1dfa02d222..6b8d28d359 100644
--- a/libavcodec/fic.c
+++ b/libavcodec/fic.c
@@ -291,8 +291,8 @@ static int fic_decode_frame(AVCodecContext *avctx, void *data,
ctx->slice_data[slice].y_off = y_off;
}
- if (ret = avctx->execute(avctx, fic_decode_slice, ctx->slice_data,
- NULL, nslices, sizeof(ctx->slice_data[0])) < 0)
+ if ((ret = avctx->execute(avctx, fic_decode_slice, ctx->slice_data,
+ NULL, nslices, sizeof(ctx->slice_data[0]))) < 0)
return ret;
skip: