mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-29 04:17:06 +08:00
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>
This commit is contained in:

committed by
Ronald S. Bultje

parent
6b6ee58249
commit
97980db487
@ -756,6 +756,8 @@ static int parse_bintree(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
|
|||||||
av_log(avctx, AV_LOG_ERROR, "SkipCell procedure not implemented yet!\n");
|
av_log(avctx, AV_LOG_ERROR, "SkipCell procedure not implemented yet!\n");
|
||||||
|
|
||||||
CHECK_CELL
|
CHECK_CELL
|
||||||
|
if(!curr_cell.mv_ptr)
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
copy_cell(ctx, plane, &curr_cell);
|
copy_cell(ctx, plane, &curr_cell);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user