Browse Source

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>
tags/n2.3
Michael Niedermayer Derek Buitenhuis 11 years ago
parent
commit
6f243b17c5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/fic.c

+ 2
- 2
libavcodec/fic.c View File

@@ -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:


Loading…
Cancel
Save