Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 8fe0473

Browse files
authored
Fix wrong core number print (#428)
Signed-off-by: Jun Tian <[email protected]>
1 parent 364dcbb commit 8fe0473

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Source/Lib/Codec/EbEncHandle.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,8 +1823,7 @@ void LoadDefaultBufferConfigurationSettings(
18231823
totalThreadCount = coreCount * EB_THREAD_COUNT_FACTOR;
18241824

18251825
if (totalThreadCount < EB_THREAD_COUNT_MIN_CORE * EB_THREAD_COUNT_FACTOR) {
1826-
coreCount = EB_THREAD_COUNT_MIN_CORE;
1827-
totalThreadCount = coreCount * EB_THREAD_COUNT_FACTOR;
1826+
totalThreadCount = EB_THREAD_COUNT_MIN_CORE * EB_THREAD_COUNT_FACTOR;
18281827
}
18291828

18301829
if (totalThreadCount % EB_THREAD_COUNT_MIN_CORE) {

0 commit comments

Comments
 (0)