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>
pull/153/merge
Ingo Brückl 3 months ago committed by Haihao Xiang
parent 0e19b05375
commit 5557c673ea
  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