[FFmpeg-devel] [PATCH 04/12] scpr: Added missing error check

Paul B Mahol onemda at gmail.com
Thu Jul 6 21:33:01 EEST 2017


On 7/6/17, Derek Buitenhuis <derek.buitenhuis at gmail.com> wrote:
> Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> ---
>  libavcodec/scpr.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/libavcodec/scpr.c b/libavcodec/scpr.c
> index f6d1e45692..29ee70d521 100644
> --- a/libavcodec/scpr.c
> +++ b/libavcodec/scpr.c
> @@ -311,6 +311,8 @@ static int decompress_i(AVCodecContext *avctx, uint32_t
> *dst, int linesize)
>          ret = decode_unit(s, &s->pixel_model[0][cx + cx1], 400, &r);
>          if (ret < 0)
>              return ret;
> +        if (ret < 0)
> +            return ret;

Hmm?


More information about the ffmpeg-devel mailing list