aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFei Wang <fei.w.wang@intel.com>2021-05-19 10:23:32 +0800
committerJan Ekström <jeebjp@gmail.com>2021-05-20 17:12:40 +0300
commitf7468a9c4037fd406847af4348c0deb2d521d0fc (patch)
tree4c388aa04bd9854c6d3bd3cd122c592566b4a13e
parent49e3dd7709da920ac224aa2f9d48da3ea8897982 (diff)
downloadffmpeg-f7468a9c4037fd406847af4348c0deb2d521d0fc.tar.gz
avcodec/vaapi_av1: pass full buffer size for each tile
Previously, only the size of a given tile was passed, making the offset and size marked in VASliceParameterBufferAV1 invalid with multiple tiles. Signed-off-by: Fei Wang <fei.w.wang@intel.com> (cherry picked from commit 9b131e8500709fc7e66bf9049fc0a8f2c302cf9e)
-rw-r--r--libavcodec/vaapi_av1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c
index 1809b485aa..16b7e35747 100644
--- a/libavcodec/vaapi_av1.c
+++ b/libavcodec/vaapi_av1.c
@@ -292,7 +292,7 @@ static int vaapi_av1_decode_slice(AVCodecContext *avctx,
err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &slice_param,
sizeof(VASliceParameterBufferAV1),
buffer,
- s->tile_group_info[i].tile_size);
+ size);
if (err) {
ff_vaapi_decode_cancel(avctx, pic);
return err;