Commit b7b7e234 authored by Michael Niedermayer's avatar Michael Niedermayer

msmpeg4dec: check w/h, prevent assert failure later

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 192db16b
......@@ -593,6 +593,11 @@ av_cold int ff_msmpeg4_decode_init(AVCodecContext *avctx)
int i;
MVTable *mv;
if(avctx->width<=0 || avctx->height<=0) {
av_log(avctx, AV_LOG_ERROR, "invalid dimensions\n");
return -1;
}
if (ff_h263_decode_init(avctx) < 0)
return -1;
......
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