summaryrefslogtreecommitdiffstats
path: root/mpvcore
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-04 20:58:53 +0100
committerwm4 <wm4@nowhere>2013-12-04 23:12:51 +0100
commit59aed93208398e42829ea17e0639f0a3588bdf65 (patch)
tree8b3bcd6ec2fca21c495119877b5ab730dbb3a16b /mpvcore
parent47c4b5c0003fa50cfefc3f2e8a089a9b0feebe3f (diff)
downloadmpv-59aed93208398e42829ea17e0639f0a3588bdf65.tar.bz2
mpv-59aed93208398e42829ea17e0639f0a3588bdf65.tar.xz
ad_lavc: expose an option to enable threading
Diffstat (limited to 'mpvcore')
-rw-r--r--mpvcore/options.c1
-rw-r--r--mpvcore/options.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/mpvcore/options.c b/mpvcore/options.c
index 08b1f10fe2..ab9969c315 100644
--- a/mpvcore/options.c
+++ b/mpvcore/options.c
@@ -858,6 +858,7 @@ const struct MPOpts mp_default_opts = {
.ad_lavc_param = {
.ac3drc = 1.,
.downmix = 1,
+ .threads = 1,
},
.lavfdopts = {
.allow_mimetype = 1,
diff --git a/mpvcore/options.h b/mpvcore/options.h
index cb700cb775..09a39059bb 100644
--- a/mpvcore/options.h
+++ b/mpvcore/options.h
@@ -225,6 +225,7 @@ typedef struct MPOpts {
struct ad_lavc_param {
float ac3drc;
int downmix;
+ int threads;
char *avopt;
} ad_lavc_param;