diff options
author | Tong Wu <tong1.wu@intel.com> | 2024-05-28 09:34:17 +0900 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2024-07-02 14:15:12 +0200 |
commit | e783e45e29e78616debba7f6d1fe6e54dc336496 (patch) | |
tree | b4b63a422b36a4057514308836cf97fb99b59347 /libavcodec/vaapi_encode_av1.c | |
parent | 0ba10f2d750e96792db0f0a94437e40dd7a2462f (diff) | |
download | ffmpeg-e783e45e29e78616debba7f6d1fe6e54dc336496.tar.gz |
avcodec/hw_base_encode: avoid getting FFHWBaseEncodeContext from avctx
This patch is to make FFHWBaseEncodeContext a standalone component
and avoid getting FFHWBaseEncodeContext from avctx->priv_data.
This patch also removes some unnecessary AVCodecContext arguments.
For receive_packet call, a small wrapper is introduced.
Signed-off-by: Tong Wu <tong1.wu@intel.com>
Diffstat (limited to 'libavcodec/vaapi_encode_av1.c')
-rw-r--r-- | libavcodec/vaapi_encode_av1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vaapi_encode_av1.c b/libavcodec/vaapi_encode_av1.c index ea4c391e54..26a5707bf5 100644 --- a/libavcodec/vaapi_encode_av1.c +++ b/libavcodec/vaapi_encode_av1.c @@ -1041,7 +1041,7 @@ const FFCodec ff_av1_vaapi_encoder = { .p.id = AV_CODEC_ID_AV1, .priv_data_size = sizeof(VAAPIEncodeAV1Context), .init = &vaapi_encode_av1_init, - FF_CODEC_RECEIVE_PACKET_CB(&ff_hw_base_encode_receive_packet), + FF_CODEC_RECEIVE_PACKET_CB(&ff_vaapi_encode_receive_packet), .close = &vaapi_encode_av1_close, .p.priv_class = &vaapi_encode_av1_class, .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_HARDWARE | |