diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-10 18:34:52 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-11 00:05:34 +0100 |
commit | 81ed7efbe24ef1b3d98c9e256d2a9332c1797ffd (patch) | |
tree | a95800c8eb68225727474d89b012aeca3caa6bb0 /libavcodec/indeo3.c | |
parent | d9339ab55373b12f078a3e3f1e294d8ff78652dd (diff) | |
download | ffmpeg-81ed7efbe24ef1b3d98c9e256d2a9332c1797ffd.tar.gz |
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>
Diffstat (limited to 'libavcodec/indeo3.c')
-rw-r--r-- | libavcodec/indeo3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c index ddb4ad0dee..aa9c30aca9 100644 --- a/libavcodec/indeo3.c +++ b/libavcodec/indeo3.c @@ -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); |