[FFmpeg-cvslog] vulkan/av1: fix tile upload offsets.
Dave Airlie
git at videolan.org
Thu Jun 22 19:22:47 EEST 2023
ffmpeg | branch: master | Dave Airlie <airlied at redhat.com> | Wed Jun 21 09:50:52 2023 +1000| [343716bd744a44cb15205af73c6e6ad0fdaa0b7b] | committer: Lynne
vulkan/av1: fix tile upload offsets.
This fixes decoding av1-1-b8-22-svc-L2T1.ivf
while not breaking other videos.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=343716bd744a44cb15205af73c6e6ad0fdaa0b7b
---
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;
More information about the ffmpeg-cvslog
mailing list