summaryrefslogtreecommitdiff
path: root/thirdparty
diff options
context:
space:
mode:
authorLeon Krause <lk@leonkrause.com>2018-08-27 04:08:04 +0200
committerLeon Krause <lk@leonkrause.com>2018-08-27 04:08:04 +0200
commit92b259ccf15f392eb83c8b07e2f0d41c294a91ae (patch)
tree2b575e6e52b40ab34ce6a97ccdf14c42730bfab9 /thirdparty
parent12290c172a6dd3763670d36039fbac8198e711f5 (diff)
Fix WebM module for HTML5 platform
Diffstat (limited to 'thirdparty')
-rw-r--r--thirdparty/libvpx/vpx_config.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/thirdparty/libvpx/vpx_config.h b/thirdparty/libvpx/vpx_config.h
index fb9e13c4ad..6caec50c81 100644
--- a/thirdparty/libvpx/vpx_config.h
+++ b/thirdparty/libvpx/vpx_config.h
@@ -67,6 +67,12 @@
#define CONFIG_BIG_ENDIAN 0 //TODO: Autodetect
+#ifdef __EMSCRIPTEN__
+#define CONFIG_MULTITHREAD 0
+#else
+#define CONFIG_MULTITHREAD 1
+#endif
+
#ifdef _WIN32
#define HAVE_PTHREAD_H 0
#define HAVE_UNISTD_H 0
@@ -95,7 +101,6 @@
#define CONFIG_RUNTIME_CPU_DETECT 1
#define CONFIG_POSTPROC 0
#define CONFIG_VP9_POSTPROC 0
-#define CONFIG_MULTITHREAD 1
#define CONFIG_INTERNAL_STATS 0
#define CONFIG_VP8_ENCODER 0
#define CONFIG_VP8_DECODER 1