[FFmpeg-cvslog] lavc/speedhqenc: Require width to be a multiple of 16

Tomas Härdin git at videolan.org
Mon Jun 3 15:52:43 EEST 2024


ffmpeg | branch: master | Tomas Härdin <git at haerdin.se> | Tue May 14 13:03:22 2024 +0200| [4037d5e103768e3c17841f2a4f94d5853ed7474a] | committer: Tomas Härdin

lavc/speedhqenc: Require width to be a multiple of 16

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4037d5e103768e3c17841f2a4f94d5853ed7474a
---

 libavcodec/speedhqenc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavcodec/speedhqenc.c b/libavcodec/speedhqenc.c
index 5b4ff4c139..39ed244bca 100644
--- a/libavcodec/speedhqenc.c
+++ b/libavcodec/speedhqenc.c
@@ -104,6 +104,12 @@ av_cold int ff_speedhq_encode_init(MpegEncContext *s)
         return AVERROR(EINVAL);
     }
 
+    // border is not implemented correctly at the moment, see ticket #10078
+    if (s->width % 16) {
+        av_log(s, AV_LOG_ERROR, "width must be a multiple of 16\n");
+        return AVERROR_PATCHWELCOME;
+    }
+
     s->min_qcoeff = -2048;
     s->max_qcoeff = 2047;
 



More information about the ffmpeg-cvslog mailing list