Commit 7e059c9c authored by Michael Niedermayer's avatar Michael Niedermayer

mpeg4videoenc: check w,h to be within the supported range.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 46cb6181
......@@ -1234,6 +1234,11 @@ static av_cold int encode_init(AVCodecContext *avctx)
int ret;
static int done = 0;
if (avctx->width >= (1<<13) || avctx->height >= (1<<13)) {
av_log(avctx, AV_LOG_ERROR, "dimensions too large for MPEG-4\n");
return AVERROR(EINVAL);
}
if((ret=ff_MPV_encode_init(avctx)) < 0)
return ret;
......
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