avcodec/vaapi_encode: fix compilation without CONFIG_VAAPI_1

This adds VAAPIEncodeContext *ctx that has been removed
in aa82340b0c.

Signed-off-by: Ingo Brückl <ib@oddnet.de>
(cherry picked from commit 5557c673ea)
release/7.1
Ingo Brückl 3 months ago committed by Haihao Xiang
parent 0b5559378b
commit 5c59d97e8a
  1. 3
      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;

Loading…
Cancel
Save