提交 f8fcba2f 编写于 作者: J jp9000

Revert "obs-ffmpeg: Use core count for output threads by default"

This reverts commit bd70e73c.

Turns out the commit was due to a miscommunication -- the commit it was
fixing actually worked fine, and this fix was unnecessary.
上级 e389ae8a
...@@ -242,12 +242,7 @@ static bool create_video_stream(struct ffmpeg_data *data) ...@@ -242,12 +242,7 @@ static bool create_video_stream(struct ffmpeg_data *data)
context->pix_fmt = closest_format; context->pix_fmt = closest_format;
context->colorspace = data->config.color_space; context->colorspace = data->config.color_space;
context->color_range = data->config.color_range; context->color_range = data->config.color_range;
context->thread_count = 0;
if (context->thread_count == 1) {
int caps = context->codec->capabilities;
context->thread_count = !!(caps & AV_CODEC_CAP_AUTO_THREADS) ?
0 : av_cpu_count();
}
data->video->time_base = context->time_base; data->video->time_base = context->time_base;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册