From 6c92ab6a4ef0dc752092e92fffec3755c5a26976 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Fri, 6 Mar 2026 19:25:00 +0100 Subject: [PATCH] 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 --- 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 */