[FFmpeg-cvslog] indeo3: check ff_set_dimensions return value

Vittorio Giovara git at videolan.org
Sun Jan 18 03:20:23 CET 2015


ffmpeg | branch: release/2.4 | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed Nov 12 11:13:02 2014 +0100| [3aba00b1b331461611d32cfd56ebe8334f6d1b93] | committer: Luca Barbato

indeo3: check ff_set_dimensions return value

CC: libav-stable at libav.org
Bug-Id: CID 1135740
(cherry picked from commit c6d7c201dfa80502cb6cefbee7dc9160cedb5187)
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3aba00b1b331461611d32cfd56ebe8334f6d1b93
---

 libavcodec/indeo3.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
index a9c02b2..f74ac42 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);



More information about the ffmpeg-cvslog mailing list