[FFmpeg-devel] [PATCH] vulkan/av1: fix tile upload offsets.

Lynne dev at lynne.ee
Thu Jun 22 19:24:32 EEST 2023


Jun 21, 2023, 01:51 by airlied at gmail.com:

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

Pushed.
Thanks.


More information about the ffmpeg-devel mailing list