[FFmpeg-cvslog] lavc/vaapi_encode_av1: Fix encode fail since 9db68ed0

Fei Wang git at videolan.org
Thu Sep 19 07:03:27 EEST 2024


ffmpeg | branch: master | Fei Wang <fei.w.wang at intel.com> | Fri Sep 13 11:15:51 2024 +0800| [061c86a7178e981dd3901d853f0aca8908be77f5] | committer: Haihao Xiang

lavc/vaapi_encode_av1: Fix encode fail since 9db68ed0

Reviewed-by: Lynne <dev at lynne.ee>
Signed-off-by: Fei Wang <fei.w.wang at intel.com>

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

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

diff --git a/libavcodec/vaapi_encode_av1.c b/libavcodec/vaapi_encode_av1.c
index 6d1be9fc07..1b350cd936 100644
--- a/libavcodec/vaapi_encode_av1.c
+++ b/libavcodec/vaapi_encode_av1.c
@@ -637,7 +637,7 @@ static int vaapi_encode_av1_init_picture_params(AVCodecContext *avctx,
             slot = ((VAAPIEncodeAV1Picture*)ref_pic->codec_priv)->slot;
             av_assert0(vpic->reference_frames[slot] == VA_INVALID_SURFACE);
 
-            vpic->reference_frames[slot] = ((VAAPIEncodePicture *)ref_pic)->recon_surface;
+            vpic->reference_frames[slot] = ((VAAPIEncodePicture *)ref_pic->priv)->recon_surface;
         }
     }
 



More information about the ffmpeg-cvslog mailing list