avcodec/cfhdenc: height < 4 is not supported
This commit is contained in:
parent
4d38d4607c
commit
0d6a6c8750
@ -258,6 +258,11 @@ static av_cold int cfhd_encode_init(AVCodecContext *avctx)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
if (avctx->height < 4) {
|
||||||
|
av_log(avctx, AV_LOG_ERROR, "Height must be >= 4.\n");
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
}
|
||||||
|
|
||||||
if (avctx->width & 15) {
|
if (avctx->width & 15) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Width must be multiple of 16.\n");
|
av_log(avctx, AV_LOG_ERROR, "Width must be multiple of 16.\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user