diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-11-12 11:13:02 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-01-13 00:16:41 +0100 |
commit | 3aba00b1b331461611d32cfd56ebe8334f6d1b93 (patch) | |
tree | 718a23f0c0b8f8a01e8d22feb2cbcf1293b5b1a1 /libavcodec | |
parent | 796bd81835ebcb69d40bc87b33f13924a5937a1b (diff) | |
download | ffmpeg-3aba00b1b331461611d32cfd56ebe8334f6d1b93.tar.gz |
indeo3: check ff_set_dimensions return value
CC: libav-stable@libav.org
Bug-Id: CID 1135740
(cherry picked from commit c6d7c201dfa80502cb6cefbee7dc9160cedb5187)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec')
-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 a9c02b2889..f74ac42ded 100644 --- a/libavcodec/indeo3.c +++ b/libavcodec/indeo3.c @@ -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); |