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

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new b637624046 avcodec/vulkan_av1: fix mi_col_starts and mi_row_starts 
units
b637624046 is described below

commit b637624046a0c2d737ed8fb0b09286d114366ef1
Author:     Hyunjun Ko <[email protected]>
AuthorDate: Tue Jan 20 18:36:20 2026 +0900
Commit:     Lynne <[email protected]>
CommitDate: Wed Jan 21 10:42:02 2026 +0000

    avcodec/vulkan_av1: fix mi_col_starts and mi_row_starts units
    
    The spec says:
       pMiColStarts is a pointer to an array of TileCols number
       of unsigned integers that corresponds to MiColStarts
       defined in section 6.8.14 of the [AV1 Specification]
    
    And the unit of MiColStarts is MI(mode info).
    
    So is pMiRowStarts.
---
 libavcodec/vulkan_av1.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/libavcodec/vulkan_av1.c b/libavcodec/vulkan_av1.c
index 3bee784a4f..08c371746e 100644
--- a/libavcodec/vulkan_av1.c
+++ b/libavcodec/vulkan_av1.c
@@ -252,9 +252,11 @@ static int vk_av1_start_frame(AVCodecContext          
*avctx,
     int err;
     int ref_count = 0;
     AV1DecContext *s = avctx->priv_data;
+    const AV1RawSequenceHeader *seq = s->raw_seq;
     const AV1Frame *pic = &s->cur_frame;
     FFVulkanDecodeContext *dec = avctx->internal->hwaccel_priv_data;
     uint32_t frame_id_alloc_mask = 0;
+    uint16_t sb_shift = seq->use_128x128_superblock ? 5 : 4;
 
     AV1VulkanDecodePicture *ap = pic->hwaccel_picture_private;
     FFVulkanDecodePicture *vp = &ap->vp;
@@ -498,8 +500,8 @@ static int vk_av1_start_frame(AVCodecContext          
*avctx,
     for (int i = 0; i < 64; i++) {
         ap->width_in_sbs_minus1[i] = frame_header->width_in_sbs_minus_1[i];
         ap->height_in_sbs_minus1[i] = frame_header->height_in_sbs_minus_1[i];
-        ap->mi_col_starts[i] = frame_header->tile_start_col_sb[i];
-        ap->mi_row_starts[i] = frame_header->tile_start_row_sb[i];
+        ap->mi_col_starts[i] = frame_header->tile_start_col_sb[i] << sb_shift;
+        ap->mi_row_starts[i] = frame_header->tile_start_row_sb[i] << sb_shift;
     }
 
     for (int i = 0; i < STD_VIDEO_AV1_MAX_SEGMENTS; i++) {

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

Reply via email to