Commit 31855b2a70 for ffmpeg
commit 31855b2a7051d07a370984f5e4029826db06be1d
Author: Niklas Haas <git@haasn.dev>
Date: Sat Oct 24 23:27:03 2026 +0200
swscale/ops_optimizer: mark split scaling intermediates progressive
Interlaced cascaded scaling otherwise skips every second line.
Technically, setting the field to FIELD_TOP here is unnecessary, but it
can't hurt to be explicit.
Signed-off-by: Niklas Haas <git@haasn.dev>
diff --git a/libswscale/ops_optimizer.c b/libswscale/ops_optimizer.c
index 83b69f29ab..731dffbf02 100644
--- a/libswscale/ops_optimizer.c
+++ b/libswscale/ops_optimizer.c
@@ -1201,6 +1201,8 @@ int ff_sws_op_list_split_at(SwsOpList *ops1, SwsOpList **out_ops2, int index)
const SwsPixelType type = ff_sws_op_input_type(op);
ops2->src.format = get_planar_fmt(type, nb_planes);
ops2->src.desc = av_pix_fmt_desc_get(ops2->src.format);
+ ops2->src.field = FIELD_TOP;
+ ops2->src.interlaced = 0;
get_input_size(ops1, &ops2->src);
ops1->dst = ops2->src;