summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-12-20 20:39:57 +0000
committerMark Thompson <sw@jkqxz.net>2019-01-23 23:04:11 +0000
commit494bd8df782efe53e85de8ce258a079cea4eca72 (patch)
treece498313e85b972958b4a003d1ea9dcbe0d44124 /libavcodec
parent5fdcf85bbffe7451c227478fda62da5c0938f27d (diff)
downloadffmpeg-streaming-494bd8df782efe53e85de8ce258a079cea4eca72.zip
ffmpeg-streaming-494bd8df782efe53e85de8ce258a079cea4eca72.tar.gz
vaapi_encode: Let the reconstructed frame pool be sized dynamically
No supported encode driver requires the pool to be fixed-size, so just remove this constraint.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vaapi_encode.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c
index eec083d..b4e9fad 100644
--- a/libavcodec/vaapi_encode.c
+++ b/libavcodec/vaapi_encode.c
@@ -1867,9 +1867,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) {
OpenPOWER on IntegriCloud