aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAneesh Dogra <lionaneesh@gmail.com>2011-11-28 02:26:52 +0530
committerRonald S. Bultje <rsbultje@gmail.com>2011-11-27 13:30:00 -0800
commit97980db4870675baf553dc190051161ecffa9d77 (patch)
tree60e5d8902ba5151c9884db870dda6b40f71d388b /libavcodec
parent6b6ee58249b233585f1f7d89aec4fe58f65b5ed7 (diff)
downloadffmpeg-97980db4870675baf553dc190051161ecffa9d77.tar.gz
indeo3: error out if no motion vector is set.
This fixes a crash on a corrupt bitstream (bugzilla #93). Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/indeo3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
index 2c7e96b738..e266aeecec 100644
--- a/libavcodec/indeo3.c
+++ b/libavcodec/indeo3.c
@@ -756,6 +756,8 @@ static int parse_bintree(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
av_log(avctx, AV_LOG_ERROR, "SkipCell procedure not implemented yet!\n");
CHECK_CELL
+ if(!curr_cell.mv_ptr)
+ return AVERROR_INVALIDDATA;
copy_cell(ctx, plane, &curr_cell);
return 0;
}