Commit db5b4875 authored by Laurent Aimar's avatar Laurent Aimar Committed by Michael Niedermayer

Reject video with non multiple of 16 width/height in the 4xm decoder.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2a9046c7
......@@ -885,6 +885,10 @@ static av_cold int decode_init(AVCodecContext *avctx){
av_log(avctx, AV_LOG_ERROR, "extradata wrong or missing\n");
return 1;
}
if((avctx->width % 16) || (avctx->height % 16)) {
av_log(avctx, AV_LOG_ERROR, "unsupported width/height\n");
return AVERROR_INVALIDDATA;
}
avcodec_get_frame_defaults(&f->current_picture);
avcodec_get_frame_defaults(&f->last_picture);
......
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