Browse Source

indeo3: check ff_set_dimensions return value

CC: libav-stable@libav.org
Bug-Id: CID 1135740
tags/n2.5
Vittorio Giovara 11 years ago
parent
commit
c6d7c201df
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/indeo3.c

+ 2
- 1
libavcodec/indeo3.c View File

@@ -944,7 +944,8 @@ static int decode_frame_headers(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
free_frame_buffers(ctx);
if ((res = allocate_frame_buffers(ctx, avctx)) < 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