avcodec/cfhdenc: height < 4 is not supported

pull/388/head
Paul B Mahol 2 years ago
parent 4d38d4607c
commit 0d6a6c8750
  1. 5
      libavcodec/cfhdenc.c

@ -258,6 +258,11 @@ static av_cold int cfhd_encode_init(AVCodecContext *avctx)
if (ret < 0)
return ret;
if (avctx->height < 4) {
av_log(avctx, AV_LOG_ERROR, "Height must be >= 4.\n");
return AVERROR_INVALIDDATA;
}
if (avctx->width & 15) {
av_log(avctx, AV_LOG_ERROR, "Width must be multiple of 16.\n");
return AVERROR_INVALIDDATA;

Loading…
Cancel
Save