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

Git pushed a commit to branch master
in repository ffmpeg.

commit 4022f7f54a634f96b9d4f2fc1bc27bcfba7dcd93
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Sep 23 22:17:09 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sat Oct 3 20:02:09 2026 +0200

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

diff --git a/libavfilter/vf_xfade_opencl.c b/libavfilter/vf_xfade_opencl.c
index 96dc7e4554..e13a17c4cc 100644
--- a/libavfilter/vf_xfade_opencl.c
+++ b/libavfilter/vf_xfade_opencl.c
@@ -248,8 +248,9 @@ static int xfade_opencl_config_output(AVFilterLink *outlink)
     outlink->sample_aspect_ratio = inlink0->sample_aspect_ratio;
     ol->frame_rate = il->frame_rate;
 
-    if (ctx->duration)
-        ctx->duration_pts = av_rescale_q(ctx->duration, AV_TIME_BASE_Q, 
outlink->time_base);
+    ctx->duration_pts = av_rescale_q(ctx->duration, AV_TIME_BASE_Q, 
outlink->time_base);
+    if (!ctx->duration_pts)
+        ctx->duration_pts = 1;
     if (ctx->offset)
         ctx->offset_pts = av_rescale_q(ctx->offset, AV_TIME_BASE_Q, 
outlink->time_base);
 

-- 
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