diff options
Diffstat (limited to 'decoder/LAVVideo/LAVPixFmtConverter.cpp')
-rw-r--r-- | decoder/LAVVideo/LAVPixFmtConverter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/decoder/LAVVideo/LAVPixFmtConverter.cpp b/decoder/LAVVideo/LAVPixFmtConverter.cpp index bcf96356..5c690f98 100644 --- a/decoder/LAVVideo/LAVPixFmtConverter.cpp +++ b/decoder/LAVVideo/LAVPixFmtConverter.cpp @@ -154,9 +154,7 @@ CLAVPixFmtConverter::CLAVPixFmtConverter() { convert = &CLAVPixFmtConverter::convert_generic; - SYSTEM_INFO systemInfo; - GetSystemInfo(&systemInfo); - m_NumThreads = min(8, max(1, systemInfo.dwNumberOfProcessors / 2)); + m_NumThreads = min(8, max(1, av_cpu_count() / 2)); ZeroMemory(&m_ColorProps, sizeof(m_ColorProps)); } |