On 2021-11-05 06:02 pm, [email protected] wrote:
From: Limin Wang <[email protected]> Signed-off-by: Limin Wang <[email protected]> --- libavutil/slicethread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/slicethread.c b/libavutil/slicethread.c index 867ce32..7b3a106 100644 --- a/libavutil/slicethread.c +++ b/libavutil/slicethread.c @@ -104,7 +104,7 @@ int avpriv_slicethread_create(AVSliceThread **pctx, void *priv, if (!nb_threads) { int nb_cpus = av_cpu_count(); if (nb_cpus > 1) - nb_threads = nb_cpus + 1; + nb_threads = FFMIN(nb_cpus + 1, 16);
Do you see diminishing returns with nb_threads > 16? Or slower filter throughput?
Regards, Gyan _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
