Skip to content

Commit

Permalink
LoadDefaultBufferConfigurationSettings: Limit -ss and -lp to Windows …
Browse files Browse the repository at this point in the history
…and linux

Signed-off-by: Christopher Degawa <ccom@randomderp.com>
  • Loading branch information
1480c1 committed Nov 13, 2019
1 parent 2b745c7 commit e5477ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Lib/Codec/EbEncHandle.c
Original file line number Diff line number Diff line change
Expand Up @@ -2143,12 +2143,14 @@ void LoadDefaultBufferConfigurationSettings(
unsigned int totalThreadCount;
unsigned int threadUnit;

#if defined(_WIN32) || defined(__linux__)
if (sequenceControlSetPtr->staticConfig.targetSocket != -1)
coreCount /= numGroups;

if (sequenceControlSetPtr->staticConfig.logicalProcessors != 0)
coreCount = sequenceControlSetPtr->staticConfig.logicalProcessors < coreCount ?
sequenceControlSetPtr->staticConfig.logicalProcessors: coreCount;
#endif

#ifdef _WIN32
//Handle special case on Windows
Expand Down

0 comments on commit e5477ad

Please sign in to comment.