Merge pull request #1556 in FS/freeswitch from ~ANDYWOLK/freeswitch:bugfix/FS-11294-fix-mod_av-build-on-windows to master

* commit '5f61553da7916ec08739fb3c2537de572a67977e':
  FS-11294: [mod_av] Fix mod_av build on Windows.
This commit is contained in:
Mike Jerris 2018-07-30 20:10:23 +00:00
commit 69ef3dd057
1 changed files with 2 additions and 2 deletions

View File

@ -1677,14 +1677,14 @@ static void load_config()
avcodec_globals.key_frame_min_freq *= 1000;
} else if (!strcmp(name, "dec-threads")) {
int i;
uint threads = switch_parse_cpu_string(value);
unsigned int threads = switch_parse_cpu_string(value);
for (i = 0; i < MAX_CODECS; i++) {
avcodec_globals.profiles[i].decoder_thread_count = threads;
}
} else if (!strcmp(name, "enc-threads")) {
int i;
uint threads = switch_parse_cpu_string(value);
unsigned int threads = switch_parse_cpu_string(value);
for (i = 0; i < MAX_CODECS; i++) {
avcodec_globals.profiles[i].ctx.thread_count = threads;