mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
vulkan/av1: fix tile upload offsets.
This fixes decoding av1-1-b8-22-svc-L2T1.ivf while not breaking other videos.
This commit is contained in:
parent
ba8a803236
commit
343716bd74
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user