indeo3: check ff_set_dimensions return value
authorVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 12 Nov 2014 10:13:02 +0000 (11:13 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 12 Jan 2015 23:16:41 +0000 (00:16 +0100)
CC: libav-stable@libav.org
Bug-Id: CID 1135740
(cherry picked from commit c6d7c201dfa80502cb6cefbee7dc9160cedb5187)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/indeo3.c

index a9c02b2889abd878735595198a4bf161ee341faa..f74ac42dede72257d6777bb3e07bc7b356fc68d6 100644 (file)
@@ -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);