[FFmpeg-cvslog] avcodec/vaapi_av1: pass full buffer size for each tile

Fei Wang git at videolan.org
Thu May 20 17:12:08 EEST 2021


ffmpeg | branch: master | Fei Wang <fei.w.wang at intel.com> | Wed May 19 10:23:32 2021 +0800| [9b131e8500709fc7e66bf9049fc0a8f2c302cf9e] | committer: Jan Ekström

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 at intel.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9b131e8500709fc7e66bf9049fc0a8f2c302cf9e
---

 libavcodec/vaapi_av1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list