diff --git a/libavcodec/vcr1.c b/libavcodec/vcr1.c index 2a4a0908850b9caa32cb9a5820d694fc761c59d6..acac9258701fdcd7feeeb315516525c840803e96 100644 --- a/libavcodec/vcr1.c +++ b/libavcodec/vcr1.c @@ -50,6 +50,10 @@ static av_cold int vcr1_decode_init(AVCodecContext *avctx) avctx->pix_fmt = AV_PIX_FMT_YUV410P; + if (avctx->width % 8 || avctx->height%4) { + av_log_ask_for_sample(avctx, "odd dimensions are not supported\n"); + return AVERROR_PATCHWELCOME; + } return 0; }