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

Git pushed a commit to branch master
in repository ffmpeg.

commit 083bf5cecb1bdbe3d5f9ba28e558d38511000874
Author:     Lynne <[email protected]>
AuthorDate: Wed Sep 9 01:36:28 2026 +0900
Commit:     Lynne <[email protected]>
CommitDate: Sun Sep 20 16:45:57 2026 +0900

    vulkan_prores_raw: undo potential quant matrix permutation
    
    Same as last commit, except this is done just in case someone
    introduces a ProRes RAW iDCT.
---
 libavcodec/vulkan_prores_raw.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavcodec/vulkan_prores_raw.c b/libavcodec/vulkan_prores_raw.c
index 54567fd07a..a19a089947 100644
--- a/libavcodec/vulkan_prores_raw.c
+++ b/libavcodec/vulkan_prores_raw.c
@@ -226,7 +226,10 @@ static int vk_prores_raw_end_frame(AVCodecContext *avctx)
     DecodePushData pd_decode = (DecodePushData) {
         .pkt_data = slices_buf->address,
     };
-    memcpy(pd_decode.qmat, prr->qmat, 64);
+    /* The decoder permutes the quantization matrix to match the layout
+     * expected by its IDCT, undo it here. */
+    for (int i = 0; i < 64; i++)
+        pd_decode.qmat[prr->prodsp.idct_permutation[i]] = prr->qmat[i];
     memcpy(pd_decode.lin_curve, prr->lin_curve, sizeof(pd_decode.lin_curve));
     ff_vk_shader_update_push_const(&ctx->s, exec, decode_shader,
                                    VK_SHADER_STAGE_COMPUTE_BIT,

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