[FFmpeg-cvslog] avcodec/vaapi_encode: fix compilation without CONFIG_VAAPI_1
Ingo Brückl
git at videolan.org
Sat Oct 12 04:13:00 EEST 2024
ffmpeg | branch: master | Ingo Brückl <ib at oddnet.de> | Wed Oct 9 04:43:01 2024 +0200| [5557c673ea783a48e8b97c2b740b22eeeca6399b] | committer: Haihao Xiang
avcodec/vaapi_encode: fix compilation without CONFIG_VAAPI_1
This adds VAAPIEncodeContext *ctx that has been removed
in aa82340b0ccdde4955fba41b8de5e45348ecd11d.
Signed-off-by: Ingo Brückl <ib at oddnet.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5557c673ea783a48e8b97c2b740b22eeeca6399b
---
libavcodec/vaapi_encode_h264.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c
index fb87b68bec..ed20b9cd24 100644
--- a/libavcodec/vaapi_encode_h264.c
+++ b/libavcodec/vaapi_encode_h264.c
@@ -406,6 +406,9 @@ static int vaapi_encode_h264_init_picture_params(AVCodecContext *avctx,
FFHWBaseEncodePicture *pic)
{
FFHWBaseEncodeContext *base_ctx = avctx->priv_data;
+#if !CONFIG_VAAPI_1
+ VAAPIEncodeContext *ctx = avctx->priv_data;
+#endif
VAAPIEncodeH264Context *priv = avctx->priv_data;
VAAPIEncodePicture *vaapi_pic = pic->priv;
VAAPIEncodeH264Picture *hpic = pic->codec_priv;
More information about the ffmpeg-cvslog
mailing list