[FFmpeg-devel] [PATCH] avcodec/vaapi_encode: fix compilation without CONFIG_VAAPI_1
    Xiang, Haihao 
    haihao.xiang at intel.com
       
    Wed Oct  9 05:03:03 EEST 2024
    
    
  
On Di, 2024-10-08 at 22:34 +0200, Ingo Brückl wrote:
>      FFHWBaseEncodeContext       *base_ctx = avctx->priv_data;
> +    VAAPIEncodeContext               *ctx = avctx->priv_data;
Please add this between #if !CONFIG_VAAPI_1 and #endif too. 
BTW we are considering to remove the support for libva 1.x,
see https://ffmpeg.org/pipermail/ffmpeg-devel/2024-June/329014.html . You'd be
better to upgrade your libva if you want to use vaapi encoding in FFmpeg.
Thanks
Haihao
>      VAAPIEncodeH264Context          *priv = avctx->priv_data;
>      VAAPIEncodePicture         *vaapi_pic = pic->priv;
>      VAAPIEncodeH264Picture          *hpic = pic->codec_priv;
> --
    
    
More information about the ffmpeg-devel
mailing list