PR #25428 opened by Niklas Haas (haasn)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25428
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25428.patch

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 <[email protected]>


>From 54796be098b16913176c4b5f955290ea7be3868a Mon Sep 17 00:00:00 2001
From: Niklas Haas <[email protected]>
Date: Sat, 24 Oct 2026 23:27:03 +0200
Subject: [PATCH] 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 <[email protected]>
---
 libswscale/ops_optimizer.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libswscale/ops_optimizer.c b/libswscale/ops_optimizer.c
index 83b69f29ab1..731dffbf027 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;
 
-- 
2.54.0

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

Reply via email to