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

Git pushed a commit to branch master
in repository ffmpeg.

commit ddc140ebfc9ebf1743b2cc060e092e880224483c
Author:     Lynne <[email protected]>
AuthorDate: Tue Sep 22 01:19:31 2026 +0900
Commit:     Lynne <[email protected]>
CommitDate: Wed Sep 23 00:30:52 2026 +0900

    vulkan/prores_ks_estimate_slice: zero the bits of a missing alpha plane
    
    The trellis and the encoder sum the bits of all four planes, but
    without an alpha plane nothing wrote the fourth. In VRAM this produced
    garbage slice sizes, and a frame size that crashed the packet assembly.
---
 libavcodec/vulkan/prores_ks_estimate_slice.comp.glsl | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/libavcodec/vulkan/prores_ks_estimate_slice.comp.glsl 
b/libavcodec/vulkan/prores_ks_estimate_slice.comp.glsl
index 16af85cf83..01d2531584 100644
--- a/libavcodec/vulkan/prores_ks_estimate_slice.comp.glsl
+++ b/libavcodec/vulkan/prores_ks_estimate_slice.comp.glsl
@@ -254,6 +254,16 @@ void main() [[maximally_reconverges]]
     scores[slice].bits[q][plane] = FFALIGN(bits, 8);
     scores[slice].score[q][plane] = error;
 
+    /* The trellis and the encoder sum all four planes */
+    if (num_planes == 3 && plane == 0) {
+        scores[slice].bits[q][3] = 0;
+        scores[slice].score[q][3] = 0;
+        if (q == max_quant) {
+            scores[slice].bits[max_quant + 1][3] = 0;
+            scores[slice].score[max_quant + 1][3] = 0;
+        }
+    }
+
     /* Accumulate total bits and error of all planes */
     int total_bits = sum_of_planes(bits);
     int total_score = sum_of_planes(error);

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