[SCM] libav/experimental: avcodec/fic: Fix return value check

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:02:53 UTC 2014


The following commit has been merged in the experimental branch:
commit 6f243b17c537646b894857d43dfdac65f85ab377
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Wed Apr 16 02:06:37 2014 +0200

    avcodec/fic: Fix return value check
    
    Fixes part of Ticket3466
    Found-by: Andrey_Karpov / PVS-Studio
    Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
    
    Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>

diff --git a/libavcodec/fic.c b/libavcodec/fic.c
index 1dfa02d..6b8d28d 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:

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list