Commit c6d7c201 authored by Vittorio Giovara's avatar Vittorio Giovara

indeo3: check ff_set_dimensions return value

CC: libav-stable@libav.org
Bug-Id: CID 1135740
parent 8e104619
...@@ -944,7 +944,8 @@ static int decode_frame_headers(Indeo3DecodeContext *ctx, AVCodecContext *avctx, ...@@ -944,7 +944,8 @@ static int decode_frame_headers(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
free_frame_buffers(ctx); free_frame_buffers(ctx);
if ((res = allocate_frame_buffers(ctx, avctx)) < 0) if ((res = allocate_frame_buffers(ctx, avctx)) < 0)
return res; 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); y_offset = bytestream2_get_le32(&gb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment