This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/9.1
in repository ffmpeg.

commit c07d33578b05a36558b5ad6c27834ee64d1d05b2
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Nov 15 22:06:06 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 14:55:53 2026 +0100

    swscale/loongarch: do not use the yuv2rgb converters for odd widths
    
    They convert pairs of pixels and left the last pixel of an odd width
    row unconverted.
    
    (cherry picked from commit 1a57aab23d0e91938fa1e276c9e2a44e6557666e)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libswscale/loongarch/swscale_init_loongarch.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libswscale/loongarch/swscale_init_loongarch.c 
b/libswscale/loongarch/swscale_init_loongarch.c
index ced73f2b0f..695ed78871 100644
--- a/libswscale/loongarch/swscale_init_loongarch.c
+++ b/libswscale/loongarch/swscale_init_loongarch.c
@@ -110,6 +110,11 @@ av_cold void rgb2rgb_init_loongarch(void)
 av_cold SwsFunc ff_yuv2rgb_init_loongarch(SwsInternal *c)
 {
     int cpu_flags = av_get_cpu_flags();
+
+    /* the converters output pairs of pixels */
+    if (c->opts.dst_w & 1)
+        return NULL;
+
 #if HAVE_LASX
     if (have_lasx(cpu_flags)) {
         if (c->opts.src_format == AV_PIX_FMT_YUV420P) {

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to