Note that this reduces the default number significantly - the scaler
instance never actually required this number, but it was often
followed immediately by the qsv encoder which can have large delays
and would therefore require a lot of frames here.
---
libavfilter/vf_scale_qsv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter/vf_scale_qsv.c
index 8ef77835d..8e46ff4a5 100644
--- a/libavfilter/vf_scale_qsv.c
+++ b/libavfilter/vf_scale_qsv.c
@@ -193,7 +193,7 @@ static int init_out_pool(AVFilterContext *ctx,
out_frames_ctx->width = FFALIGN(out_width, 32);
out_frames_ctx->height = FFALIGN(out_height, 32);
out_frames_ctx->sw_format = out_format;
- out_frames_ctx->initial_pool_size = 32;
+ out_frames_ctx->initial_pool_size = 4 + ctx->extra_hw_frames;
out_frames_hwctx->frame_type = in_frames_hwctx->frame_type;
--
2.11.0
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel