You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vc1: check image height, fix division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -5521,6 +5521,11 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((s->mb_height >> v->field_mode) == 0) {
|
||||||
|
av_log(v->s.avctx, AV_LOG_ERROR, "image too short\n");
|
||||||
|
goto err;
|
||||||
|
}
|
||||||
|
|
||||||
// process pulldown flags
|
// process pulldown flags
|
||||||
s->current_picture_ptr->f.repeat_pict = 0;
|
s->current_picture_ptr->f.repeat_pict = 0;
|
||||||
// Pulldown flags are only valid when 'broadcast' has been set.
|
// Pulldown flags are only valid when 'broadcast' has been set.
|
||||||
|
Reference in New Issue
Block a user