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 <git@haasn.dev>
This commit is contained in:
Niklas Haas
2026-03-06 19:25:00 +01:00
committed by Niklas Haas
parent 4e63dbeb6d
commit 6c92ab6a4e

View File

@@ -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 */