Skip to content

Commit

Permalink
indeo3: check ff_set_dimensions return value
Browse files Browse the repository at this point in the history
CC: [email protected]
Bug-Id: CID 1135740
  • Loading branch information
kodawah committed Nov 13, 2014
1 parent 8e10461 commit c6d7c20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libavcodec/indeo3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c6d7c20

Please sign in to comment.