Browse Source

avcodec/indeo3: check the return code of ff_set_dimensions()

This is currently redundant as the checks before it are tighter than
the checks in ff_set_dimensions() but its more robust not to depend
on that.

Fixes CID1135740
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
81ed7efbe2
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/indeo3.c

+ 2
- 1
libavcodec/indeo3.c View File

@@ -956,7 +956,8 @@ static int decode_frame_headers(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
free_frame_buffers(ctx);
if ((res = allocate_frame_buffers(ctx, avctx, width, height)) < 0)
return res;
ff_set_dimensions(avctx, width, height);
if ((res = ff_set_dimensions(avctx, width, height)) < 0)
return res;
}

y_offset = bytestream2_get_le32(&gb);


Loading…
Cancel
Save