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

Git pushed a commit to branch master
in repository ffmpeg.

commit 87113a5e1f246f4682d2264470cf2ae5a9e7c400
Author:     Ramiro Polla <[email protected]>
AuthorDate: Mon Sep 28 15:26:29 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Tue Sep 29 18:54:39 2026 +0000

    swscale/graph: error out on unimplemented plane passthrough for hardware 
frames
    
    Plane passthrough for hardware frames isn't implemented, so we should
    error out instead of leaving the output frame unwritten.
    
    This is a regression since 362414afba, which enabled hardware frames
    without adapting the no-op path. Before that commit, hardware frames
    were rejected with ENOTSUP.
    
    Fixes:
     $ ./libswscale/tests/swscale -hw 0 -backends spirv -scaler none -src 
yuva444p -dst yuv444p
     yuva444p 96x96 -> yuv444p 96x96, flags=0x0 dither=1 scaler=0/0, 
SSIM={Y=0.000005 U=0.000003 V=0.000003 A=1.000000} loss=9.999956e-01
     yuva444p 96x96 -> yuv444p 96x96, flags=0x0 dither=1 scaler=0/0
       loss 9.999956e-01 is WORSE by 9.999774e-01, expected loss 1.823902e-05
---
 libswscale/graph.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libswscale/graph.c b/libswscale/graph.c
index 558d422531..8e005f3c50 100644
--- a/libswscale/graph.c
+++ b/libswscale/graph.c
@@ -815,6 +815,10 @@ static int init_passes(SwsGraph *graph)
     }
 
     if (!pass) {
+        /* Plane passthrough is not implemented for hardware frames */
+        if (src.hw_format != AV_PIX_FMT_NONE || dst.hw_format != 
AV_PIX_FMT_NONE)
+            return AVERROR(ENOTSUP);
+
         /* No passes were added, so no operations were necessary */
         graph->noop = 1;
 

-- 
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