Commit 97980db4 authored by Aneesh Dogra's avatar Aneesh Dogra Committed by Ronald S. Bultje

indeo3: error out if no motion vector is set.

This fixes a crash on a corrupt bitstream (bugzilla #93).
Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
parent 6b6ee582
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment