Message ID | 1636180390-27048-1-git-send-email-lance.lmwang@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,v2] avfilter/src_movie: Add a maximum constraint of 16 slice threads | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | success | Make fate finished |
NACK
On Sat, Nov 06, 2021 at 11:44:08AM +0100, Paul B Mahol wrote:
> NACK
What's your suggestion? any objection if add a thread option for src_movie
filter?
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index 573f363..cd431b1 100644 --- a/libavfilter/src_movie.c +++ b/libavfilter/src_movie.c @@ -169,7 +169,7 @@ static int open_stream(AVFilterContext *ctx, MovieStream *st) if (ret < 0) return ret; - st->codec_ctx->thread_count = ff_filter_get_nb_threads(ctx); + st->codec_ctx->thread_count = FFMIN(ff_filter_get_nb_threads(ctx), 16); if ((ret = avcodec_open2(st->codec_ctx, codec, NULL)) < 0) { av_log(ctx, AV_LOG_ERROR, "Failed to open codec\n");