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

Git pushed a commit to branch master
in repository ffmpeg.

commit 7b7b8e1b172efb605cf3ccc79455c1b8945e403c
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/flip: fix off-by-one in the mirrored position
    
    The mirror of pos is size - 1 - pos, not size - pos. The picture was
    shifted by one pixel and column (or row) 0 was never written.
---
 libavfilter/vulkan/flip.comp.glsl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavfilter/vulkan/flip.comp.glsl 
b/libavfilter/vulkan/flip.comp.glsl
index a0d556ba8c..71cb8ea007 100644
--- a/libavfilter/vulkan/flip.comp.glsl
+++ b/libavfilter/vulkan/flip.comp.glsl
@@ -47,9 +47,9 @@ void main()
 
     ivec2 dst;
     switch (flip) {
-    case FLIP_HORIZONTAL: dst = ivec2(size.x - pos.x, pos.y); break;
-    case FLIP_VERTICAL:   dst = ivec2(pos.x, size.y - pos.y); break;
-    case FLIP_BOTH:       dst = ivec2(size.xy - pos.xy);      break;
+    case FLIP_HORIZONTAL: dst = ivec2(size.x - 1 - pos.x, pos.y); break;
+    case FLIP_VERTICAL:   dst = ivec2(pos.x, size.y - 1 - pos.y); break;
+    case FLIP_BOTH:       dst = ivec2(size.xy - 1 - pos.xy);      break;
     default:              dst = pos;                          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