mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01: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:
parent
0b5559378b
commit
5c59d97e8a
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue