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

Git pushed a commit to branch master
in repository ffmpeg.

commit b2266d66561cdaa63f74a890f57e4d745379b04f
Author:     Niklas Haas <[email protected]>
AuthorDate: Fri Feb 27 23:13:22 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Sun Mar 1 21:57:53 2026 +0000

    swscale/graph: correctly adjust field height for interlaced frames
    
    This is a pre-existing bug from 67f36272671be9405248386bfbc467a6a772d5ce.
    
    Sponsored-by: Sovereign Tech Fund
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/graph.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libswscale/graph.c b/libswscale/graph.c
index 0ad7de09db..188d57e73b 100644
--- a/libswscale/graph.c
+++ b/libswscale/graph.c
@@ -888,6 +888,8 @@ static void get_field(SwsGraph *graph, const AVFrame 
*avframe, SwsFrame *frame)
     /* Take only every second line */
     for (int i = 0; i < 4; i++)
         frame->linesize[i] <<= 1;
+
+    frame->height = (frame->height + (graph->field == FIELD_TOP)) >> 1;
 }
 
 void ff_sws_graph_run(SwsGraph *graph, const AVFrame *dst, const AVFrame *src)

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

Reply via email to