diff options
author | Lynne <dev@lynne.ee> | 2024-08-30 16:40:37 +0000 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2024-09-09 07:05:42 +0200 |
commit | e6019ed075d6d2557dc834a09c92102055837d73 (patch) | |
tree | 83e92eba8176de0c3f199ae59620c8798e35a917 /libavcodec/vaapi_encode.c | |
parent | 034e25e1a4687167c8f8abacecb543ac3aa6a217 (diff) | |
download | ffmpeg-e6019ed075d6d2557dc834a09c92102055837d73.tar.gz |
hw_base_encode: allocate DPB image upfront
Vulkan requires this, as it needs to initialize state upfront.
Diffstat (limited to 'libavcodec/vaapi_encode.c')
-rw-r--r-- | libavcodec/vaapi_encode.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index b72e9035cb..0058e1e772 100644 --- a/libavcodec/vaapi_encode.c +++ b/libavcodec/vaapi_encode.c @@ -313,11 +313,6 @@ static int vaapi_encode_issue(AVCodecContext *avctx, av_log(avctx, AV_LOG_DEBUG, "Input surface is %#x.\n", pic->input_surface); - err = av_hwframe_get_buffer(base_ctx->recon_frames_ref, base_pic->recon_image, 0); - if (err < 0) { - err = AVERROR(ENOMEM); - goto fail; - } pic->recon_surface = (VASurfaceID)(uintptr_t)base_pic->recon_image->data[3]; av_log(avctx, AV_LOG_DEBUG, "Recon surface is %#x.\n", pic->recon_surface); |