mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-25 09:51:06 +08:00
Merge commit 'c6bc18bc121ea66df715123c59f7ef9542c0914a'
* commit 'c6bc18bc121ea66df715123c59f7ef9542c0914a': vf_hwupload/hwmap: Support setting a fixed pool size Merged-by: Mark Thompson <sw@jkqxz.net>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user