mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/midivid: only multiple of 4 width/height are possible
This commit is contained in:
parent
388a221a8b
commit
e007059d66
@ -238,6 +238,9 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
||||
MidiVidContext *s = avctx->priv_data;
|
||||
int ret = av_image_check_size(avctx->width, avctx->height, 0, avctx);
|
||||
|
||||
if (avctx->width & 3 || avctx->height & 3)
|
||||
ret = AVERROR_INVALIDDATA;
|
||||
|
||||
if (ret < 0) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Invalid image size %dx%d.\n",
|
||||
avctx->width, avctx->height);
|
||||
|
Loading…
Reference in New Issue
Block a user