Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2017-06-20 00:39:46 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2017-06-20 00:39:46 +0300
commit26ec07aa73818264dcaf50f4c7a27f7d5869905a (patch)
tree7d833f3e01512b7082e82f93c24495a7269efe14
parentb2cb27a1a978ce0dcea96df98e28f2dd7ff1ab29 (diff)
avcodec: increase the max number of threads to 32
-rw-r--r--decoder/LAVVideo/VideoSettingsProp.cpp2
-rw-r--r--decoder/LAVVideo/decoders/avcodec.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/decoder/LAVVideo/VideoSettingsProp.cpp b/decoder/LAVVideo/VideoSettingsProp.cpp
index 193b1afe..b85439ee 100644
--- a/decoder/LAVVideo/VideoSettingsProp.cpp
+++ b/decoder/LAVVideo/VideoSettingsProp.cpp
@@ -198,7 +198,7 @@ HRESULT CLAVVideoSettingsProp::OnActivate()
SendDlgItemMessage(m_Dlg, IDC_THREADS, CB_RESETCONTENT, 0, 0);
SendDlgItemMessage(m_Dlg, IDC_THREADS, CB_ADDSTRING, 0, (LPARAM)stringBuffer);
- for (unsigned i = 1; i <= 16; ++i) {
+ for (unsigned i = 1; i <= 32; ++i) {
swprintf_s(stringBuffer, L"%d", i);
SendDlgItemMessage(m_Dlg, IDC_THREADS, CB_ADDSTRING, 0, (LPARAM)stringBuffer);
}
diff --git a/decoder/LAVVideo/decoders/avcodec.h b/decoder/LAVVideo/decoders/avcodec.h
index 8ed05507..084a21b8 100644
--- a/decoder/LAVVideo/decoders/avcodec.h
+++ b/decoder/LAVVideo/decoders/avcodec.h
@@ -23,7 +23,7 @@
#include <map>
-#define AVCODEC_MAX_THREADS 16
+#define AVCODEC_MAX_THREADS 32
typedef struct {
REFERENCE_TIME rtStart;