diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-02-12 22:56:12 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-02-12 22:56:12 +0000 |
commit | b668a1c8b35d7b45eb32cba465fb99b99355998c (patch) | |
tree | 235625a64c74b35ff282a73fb15333f6e16e5d94 /libavfilter/vf_hwupload.c | |
parent | 6e050e0085b3f6f1109a0593aad63ec6e6bf23ff (diff) | |
parent | c6bc18bc121ea66df715123c59f7ef9542c0914a (diff) | |
download | ffmpeg-b668a1c8b35d7b45eb32cba465fb99b99355998c.tar.gz |
Merge commit 'c6bc18bc121ea66df715123c59f7ef9542c0914a'
* commit 'c6bc18bc121ea66df715123c59f7ef9542c0914a':
vf_hwupload/hwmap: Support setting a fixed pool size
Merged-by: Mark Thompson <sw@jkqxz.net>
Diffstat (limited to 'libavfilter/vf_hwupload.c')
-rw-r--r-- | libavfilter/vf_hwupload.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vf_hwupload.c b/libavfilter/vf_hwupload.c index 157686b7b3..50bc7e10f6 100644 --- a/libavfilter/vf_hwupload.c +++ b/libavfilter/vf_hwupload.c @@ -131,6 +131,9 @@ static int hwupload_config_output(AVFilterLink *outlink) ctx->hwframes->width = inlink->w; ctx->hwframes->height = inlink->h; + if (avctx->extra_hw_frames >= 0) + ctx->hwframes->initial_pool_size = 2 + avctx->extra_hw_frames; + err = av_hwframe_ctx_init(ctx->hwframes_ref); if (err < 0) goto fail; |