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

Git pushed a commit to branch master
in repository ffmpeg.

commit 01c2a2bfa46a79eab35b60a83794a9730ebe6c3b
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Sep 22 21:31:24 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sat Oct 3 20:02:09 2026 +0200

    avfilter/vf_xfade: keep the rescaled transition duration nonzero
    
    Found during review of the fix for #22273
---
 libavfilter/vf_xfade.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_xfade.c b/libavfilter/vf_xfade.c
index d2da541ffe..8371fdf5ad 100644
--- a/libavfilter/vf_xfade.c
+++ b/libavfilter/vf_xfade.c
@@ -2099,8 +2099,9 @@ static int config_output(AVFilterLink *outlink)
 
     s->start_pts = s->inputs_offset_pts = AV_NOPTS_VALUE;
 
-    if (s->duration)
-        s->duration_pts = av_rescale_q(s->duration, AV_TIME_BASE_Q, 
outlink->time_base);
+    s->duration_pts = av_rescale_q(s->duration, AV_TIME_BASE_Q, 
outlink->time_base);
+    if (!s->duration_pts)
+        s->duration_pts = 1;
 
     switch (s->transition) {
     case CUSTOM:     s->transitionf = s->depth <= 8 ? custom8_transition     : 
custom16_transition;     break;

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to