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

Git pushed a commit to branch master
in repository ffmpeg.

commit 0929b6038ce70e1316907c9a35112f9f1f955f4a
Author:     Jun Zhao <[email protected]>
AuthorDate: Thu Apr 23 11:27:27 2026 +0800
Commit:     Jun Zhao <[email protected]>
CommitDate: Tue Apr 28 06:14:38 2026 +0000

    avfilter/vf_scale_vulkan: propagate ff_scale_adjust_dimensions() error
    
    ff_scale_adjust_dimensions() can now return a negative error code when
    the evaluated output dimensions are non-positive.  Check the return
    value and fail fast instead of continuing with the unadjusted result.
    
    Signed-off-by: Jun Zhao <[email protected]>
---
 libavfilter/vf_scale_vulkan.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_scale_vulkan.c b/libavfilter/vf_scale_vulkan.c
index ad9789ef27..19b4e5e5ac 100644
--- a/libavfilter/vf_scale_vulkan.c
+++ b/libavfilter/vf_scale_vulkan.c
@@ -420,8 +420,10 @@ static int scale_vulkan_config_output(AVFilterLink 
*outlink)
     if (err < 0)
         return err;
 
-    ff_scale_adjust_dimensions(inlink, &vkctx->output_width, 
&vkctx->output_height,
-                               SCALE_FORCE_OAR_DISABLE, 1, 1.f);
+    err = ff_scale_adjust_dimensions(inlink, &vkctx->output_width, 
&vkctx->output_height,
+                                     SCALE_FORCE_OAR_DISABLE, 1, 1.f);
+    if (err < 0)
+        return err;
 
     outlink->w = vkctx->output_width;
     outlink->h = vkctx->output_height;

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

Reply via email to