lavc/vaapi_encode_av1: Fix encode fail since 9db68ed0

Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
release/7.1
Fei Wang 4 months ago committed by Haihao Xiang
parent 6be3786c82
commit 061c86a717
  1. 2
      libavcodec/vaapi_encode_av1.c

@ -637,7 +637,7 @@ static int vaapi_encode_av1_init_picture_params(AVCodecContext *avctx,
slot = ((VAAPIEncodeAV1Picture*)ref_pic->codec_priv)->slot; slot = ((VAAPIEncodeAV1Picture*)ref_pic->codec_priv)->slot;
av_assert0(vpic->reference_frames[slot] == VA_INVALID_SURFACE); av_assert0(vpic->reference_frames[slot] == VA_INVALID_SURFACE);
vpic->reference_frames[slot] = ((VAAPIEncodePicture *)ref_pic)->recon_surface; vpic->reference_frames[slot] = ((VAAPIEncodePicture *)ref_pic->priv)->recon_surface;
} }
} }

Loading…
Cancel
Save