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

Git pushed a commit to branch master
in repository ffmpeg.

commit 6c92ab6a4ef0dc752092e92fffec3755c5a26976
Author:     Niklas Haas <[email protected]>
AuthorDate: Fri Mar 6 19:25:00 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Thu Mar 12 21:02:48 2026 +0000

    swscale/graph: remove redundant check
    
    Such formats are already rejected by ff_sws_decode/encode_pixfmt().
    
    Sponsored-by: Sovereign Tech Fund
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/graph.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libswscale/graph.c b/libswscale/graph.c
index c8caf9488e..b3a545f02b 100644
--- a/libswscale/graph.c
+++ b/libswscale/graph.c
@@ -573,9 +573,7 @@ static int add_convert_pass(SwsGraph *graph, const 
SwsFormat *src,
         goto fail;
 
     /* The new format conversion layer cannot scale for now */
-    if (src->width != dst->width || src->height != dst->height ||
-        src->desc->log2_chroma_h || src->desc->log2_chroma_w ||
-        dst->desc->log2_chroma_h || dst->desc->log2_chroma_w)
+    if (src->width != dst->width || src->height != dst->height)
         goto fail;
 
     /* The new code does not yet support alpha blending */

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to