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

This commit is contained in:
Seven Du 2018-08-24 11:25:26 +08:00
parent f52b2d26a7
commit c1f8bfb442
1 changed files with 2 additions and 0 deletions

View File

@ -1858,6 +1858,8 @@ static void load_config()
profile->ctx.qmin = -1;
profile->ctx.qmax = -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")) {
profile->ctx.profile = FF_PROFILE_H264_BASELINE;