[FFmpeg-cvslog] avcodec/indeo3: check the return code of ff_set_dimensions()
Michael Niedermayer
git at videolan.org
Wed Dec 11 01:22:08 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 10 18:34:52 2013 +0100| [81ed7efbe24ef1b3d98c9e256d2a9332c1797ffd] | committer: Michael Niedermayer
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 at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=81ed7efbe24ef1b3d98c9e256d2a9332c1797ffd
---
libavcodec/indeo3.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
index ddb4ad0..aa9c30a 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);
More information about the ffmpeg-cvslog
mailing list