提交 c1f8bfb4 authored 作者: Seven Du's avatar Seven Du

FS-11189 set default cpu string to cpu/2/4 if not configured

上级 f52b2d26
...@@ -1858,6 +1858,8 @@ static void load_config() ...@@ -1858,6 +1858,8 @@ static void load_config()
profile->ctx.qmin = -1; profile->ctx.qmin = -1;
profile->ctx.qmax = -1; profile->ctx.qmax = -1;
profile->ctx.max_qdiff = -1; profile->ctx.max_qdiff = -1;
profile->ctx.thread_count = switch_parse_cpu_string("cpu/2/4");
profile->decoder_thread_count = switch_parse_cpu_string("cpu/2/4");
if (!strcasecmp(CODEC_MAPS[i], "H264")) { if (!strcasecmp(CODEC_MAPS[i], "H264")) {
profile->ctx.profile = FF_PROFILE_H264_BASELINE; profile->ctx.profile = FF_PROFILE_H264_BASELINE;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论