Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-11-12 13:13:02 +0300
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-11-13 03:41:26 +0300
commitc6d7c201dfa80502cb6cefbee7dc9160cedb5187 (patch)
tree662833a7affa342f49e3e9c13c260d87053e3721 /libavcodec/indeo3.c
parent8e104619a627fcf5f4c2bd3c09d0c2d323aae745 (diff)
indeo3: check ff_set_dimensions return value
CC: libav-stable@libav.org Bug-Id: CID 1135740
Diffstat (limited to 'libavcodec/indeo3.c')
-rw-r--r--libavcodec/indeo3.c3
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);