[FFmpeg-cvslog] avcodec/cfhdenc: height < 4 is not supported
Paul B Mahol
git at videolan.org
Thu Dec 1 20:25:26 EET 2022
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Dec 1 19:27:35 2022 +0100| [0d6a6c87500715212f2f537c62b837a630fafb49] | committer: Paul B Mahol
avcodec/cfhdenc: height < 4 is not supported
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0d6a6c87500715212f2f537c62b837a630fafb49
---
libavcodec/cfhdenc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavcodec/cfhdenc.c b/libavcodec/cfhdenc.c
index 29e6aa1280..6003c83237 100644
--- a/libavcodec/cfhdenc.c
+++ b/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;
More information about the ffmpeg-cvslog
mailing list