History

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.

Mark Thompson committed 7 years ago

Commit 494bd8d1 parent 5fdcf851 file · +0 −3Browse files

Unified · Split

libavcodec/vaapi_encode.c+0−3
@@ -1867,9 +1867,6 @@ static av_cold int vaapi_encode_create_recon_frames(AVCodecContext *avctx) · 1866 unmodified lines
18671867 ctx->recon_frames->sw_format = recon_format;
18681868 ctx->recon_frames->width = ctx->surface_width;
18691869 ctx->recon_frames->height = ctx->surface_height;
1870− // At most three IDR/I/P frames and two runs of B frames can be in
1871− // flight at any one time.
1872− ctx->recon_frames->initial_pool_size = 3 + 2 * ctx->b_per_p;
18731870
18741871 err = av_hwframe_ctx_init(ctx->recon_frames_ref);
18751872 if (err < 0) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t