From: Limin Wang <[email protected]> It's configured the number of video decode thread, so use the same maximum constraint as MAX_AUTO_THREADS in libavcodec/pthread_internal.h
Signed-off-by: Limin Wang <[email protected]> --- libavfilter/src_movie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 1.8.3.1 _______________________________________________ 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".
