From 6f243b17c537646b894857d43dfdac65f85ab377 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 16 Apr 2014 02:06:37 +0200 Subject: [PATCH] avcodec/fic: Fix return value check Fixes part of Ticket3466 Found-by: Andrey_Karpov / PVS-Studio Signed-off-by: Michael Niedermayer Signed-off-by: Derek Buitenhuis --- libavcodec/fic.c | 4 ++-- 1 file 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: