summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_av1.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/vaapi_av1.c')
-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;