mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-28 10:04:37 +08:00
avcodec/vaapi_encode: fix compilation without CONFIG_VAAPI_1
This adds VAAPIEncodeContext *ctx that has been removed inaa82340b0c. Signed-off-by: Ingo Brückl <ib@oddnet.de> (cherry picked from commit5557c673ea)
This commit is contained in:
1 parent
0b5559378b
commit
5c59d97e8a
1 file changed
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user