> On Jun 17, 2024, at 15:05, Anton Khirnov <an...@khirnov.net> wrote: > > Quoting Zhao Zhili (2024-06-17 07:19:26) >> From: Zhao Zhili <zhiliz...@tencent.com> >> >> When thread_count be zero, it will be run on current thread like >> !HAVE_THREADS. > > Other APIs treat zero to mean "auto".
executor don’t detect cpu cores by itself. It’s more low level than libavcodec. Zero thread is zero thread, literally. If we use thread_count one to mean run on current thread, how to create a single thread then? What’s the API do you suggest? Some negative value? > > -- > Anton Khirnov > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe". _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".