mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
rv10: always check image size not just in some cases.
Fixes division by 0 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a3cb7f992f
commit
caa2fa2c69
@ -398,7 +398,8 @@ static int rv20_decode_picture_header(RVDecContext *rv)
|
||||
if(s->avctx->debug & FF_DEBUG_PICT_INFO){
|
||||
av_log(s->avctx, AV_LOG_DEBUG, "F %d/%d\n", f, rpr_bits);
|
||||
}
|
||||
} else if (av_image_check_size(s->width, s->height, 0, s->avctx) < 0)
|
||||
}
|
||||
if (av_image_check_size(s->width, s->height, 0, s->avctx) < 0)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
mb_pos = ff_h263_decode_mba(s);
|
||||
|
Loading…
Reference in New Issue
Block a user