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

Git pushed a commit to branch master
in repository ffmpeg.

commit e4c7773fdb95ebaca0180b62b1b36d1596699b3b
Author:     Marcos Ashton Iglesias <[email protected]>
AuthorDate: Wed Sep 30 19:37:41 2026 +0100
Commit:     Lynne <[email protected]>
CommitDate: Thu Oct 1 03:11:19 2026 +0000

    avfilter/vulkan/gblur: repeat the edge pixels instead of reading black
    
    Taps outside the frame were read as 0, which darkened the borders.
---
 libavfilter/vulkan/gblur.comp.glsl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vulkan/gblur.comp.glsl 
b/libavfilter/vulkan/gblur.comp.glsl
index 77c337020e..5eb95ae86b 100644
--- a/libavfilter/vulkan/gblur.comp.glsl
+++ b/libavfilter/vulkan/gblur.comp.glsl
@@ -54,8 +54,8 @@ void main()
     for(int i = 1; i < kernel.length(); i++) {
         ivec2 offs = gl_WorkGroupSize.x > gl_WorkGroupSize.y ? ivec2(i, 0) :
                                                                ivec2(0, i);
-        sum += imageLoad(input_img[P_IDX], pos + offs) * kernel[i];
-        sum += imageLoad(input_img[P_IDX], pos - offs) * kernel[i];
+        sum += imageLoad(input_img[P_IDX], min(pos + offs, size - 1)) * 
kernel[i];
+        sum += imageLoad(input_img[P_IDX], max(pos - offs, ivec2(0))) * 
kernel[i];
     }
 
     imageStore(output_img[P_IDX], pos, sum);

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