diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-07-14 15:48:17 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-07-15 11:29:59 +0200 |
commit | 28dda8a691f1c723a4a9365ab85f9625f1330096 (patch) | |
tree | a2f2cb8b7e1d71aacada978267db1a95fb718d70 /libavcodec/indeo4.c | |
parent | b0eeb9d442e4b7e82f6797d74245434ea33110a5 (diff) | |
download | ffmpeg-28dda8a691f1c723a4a9365ab85f9625f1330096.tar.gz |
indeo: Sanitize ff_ivi_init_planes fail paths
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/indeo4.c')
-rw-r--r-- | libavcodec/indeo4.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/indeo4.c b/libavcodec/indeo4.c index 1d68ded3ff..fccb74f80a 100644 --- a/libavcodec/indeo4.c +++ b/libavcodec/indeo4.c @@ -209,6 +209,7 @@ static int decode_pic_hdr(IVI45DecContext *ctx, AVCodecContext *avctx) if (ivi_pic_config_cmp(&pic_conf, &ctx->pic_conf)) { if (ff_ivi_init_planes(ctx->planes, &pic_conf)) { av_log(avctx, AV_LOG_ERROR, "Couldn't reallocate color planes!\n"); + ctx->pic_conf.luma_bands = 0; return AVERROR(ENOMEM); } |