[FFmpeg-devel] [PATCH] vulkan/av1: fix tile upload offsets.
airlied at gmail.com
airlied at gmail.com
Wed Jun 21 02:50:52 EEST 2023
From: Dave Airlie <airlied at redhat.com>
This fixes decoding av1-1-b8-22-svc-L2T1.ivf
while not breaking other videos.
---
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 91e44ba803..005998b1bd 100644
--- a/libavcodec/vulkan_av1.c
+++ b/libavcodec/vulkan_av1.c
@@ -513,13 +513,15 @@ static int vk_av1_decode_slice(AVCodecContext *avctx,
.tg_end = s->tg_end,
};
- err = ff_vk_decode_add_slice(avctx, vp, data, size, 0,
+ err = ff_vk_decode_add_slice(avctx, vp,
+ data + s->tile_group_info[i].tile_offset,
+ s->tile_group_info[i].tile_size, 0,
&ap->tile_list.nb_tiles,
&ap->tile_offsets);
if (err < 0)
return err;
-// ap->tiles[ap->tile_list.nb_tiles - 1].offset = ap->tile_offsets[ap->tile_list.nb_tiles - 1];
+ ap->tiles[ap->tile_list.nb_tiles - 1].offset = ap->tile_offsets[ap->tile_list.nb_tiles - 1];
}
return 0;
--
2.41.0
More information about the ffmpeg-devel
mailing list