mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-10-19 18:03:17 +00:00
avcodec/mpegvideo_enc: Check FLV1 resolution limits
Found-by: Elias Myllymäki <elias.myllymaki04p@gmail.com>
Reviewed-by: Alexander Strasser <eclipse7@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 827c073154
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
bc13387c5b
commit
51dd93b44c
1 changed files with 6 additions and 0 deletions
|
@ -575,6 +575,12 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||
av_log(avctx, AV_LOG_ERROR, "H.263 does not support resolutions above 2048x1152\n");
|
||||
return -1;
|
||||
}
|
||||
if (s->codec_id == AV_CODEC_ID_FLV1 &&
|
||||
(avctx->width > 65535 ||
|
||||
avctx->height > 65535 )) {
|
||||
av_log(avctx, AV_LOG_ERROR, "FLV does not support resolutions above 16bit\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
if ((s->codec_id == AV_CODEC_ID_H263 ||
|
||||
s->codec_id == AV_CODEC_ID_H263P) &&
|
||||
((avctx->width &3) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue