mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-19 05:49:09 +02:00
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@oddnet.de> (cherry picked from commit 5557c673ea783a48e8b97c2b740b22eeeca6399b)
This commit is contained in:
parent
0b5559378b
commit
5c59d97e8a
@ -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…
x
Reference in New Issue
Block a user