[FFmpeg-devel] [PATCH v4 35/38] vaapi_encode: Let the reconstructed frame pool be sized dynamically
Mark Thompson
sw at jkqxz.net
Wed Sep 19 01:31:13 EEST 2018
No supported encode driver requires the pool to be fixed-size, so just
remove this constraint.
---
libavcodec/vaapi_encode.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c
index 87397965d3..abd80b2df9 100644
--- a/libavcodec/vaapi_encode.c
+++ b/libavcodec/vaapi_encode.c
@@ -1863,9 +1863,6 @@ static av_cold int vaapi_encode_create_recon_frames(AVCodecContext *avctx)
ctx->recon_frames->sw_format = recon_format;
ctx->recon_frames->width = ctx->surface_width;
ctx->recon_frames->height = ctx->surface_height;
- // At most three IDR/I/P frames and two runs of B frames can be in
- // flight at any one time.
- ctx->recon_frames->initial_pool_size = 3 + 2 * ctx->b_per_p;
err = av_hwframe_ctx_init(ctx->recon_frames_ref);
if (err < 0) {
--
2.18.0
More information about the ffmpeg-devel
mailing list