summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-30 19:44:52 +0200
committerwm4 <wm4@nowhere>2015-03-30 19:44:52 +0200
commitebef5da074b7bfd1cf3a9f6e110d71e87eaa1901 (patch)
tree828fc9b873b9a9345cb3ebdb9798ef0532403edf
parent8fff12542279960ff6e0a14f186d5c4c4d2bdfe4 (diff)
downloadmpv-ebef5da074b7bfd1cf3a9f6e110d71e87eaa1901.tar.bz2
mpv-ebef5da074b7bfd1cf3a9f6e110d71e87eaa1901.tar.xz
ad_lavc: disable AC3 DRC by default
-rw-r--r--DOCS/man/options.rst7
-rw-r--r--audio/decode/ad_lavc.c4
2 files changed, 7 insertions, 4 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 45e312eea7..da0012c948 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -917,11 +917,14 @@ Audio
``--ad-lavc-ac3drc=<level>``
Select the Dynamic Range Compression level for AC-3 audio streams.
``<level>`` is a float value ranging from 0 to 1, where 0 means no
- compression and 1 (which is the default) means full compression (make loud
- passages more silent and vice versa). Values up to 2 are also accepted, but
+ compression (which is the default) and 1 means full compression (make loud
+ passages more silent and vice versa). Values up to 6 are also accepted, but
are purely experimental. This option only shows an effect if the AC-3 stream
contains the required range compression information.
+ The standard mandates that DRC is enabled by default, but mpv (and some
+ other players) ignore this for the sake of better audio quality.
+
``--ad-lavc-downmix=<yes|no>``
Whether to request audio channel downmixing from the decoder (default: yes).
Some decoders, like AC-3, AAC and DTS, can remix audio on decoding. The
diff --git a/audio/decode/ad_lavc.c b/audio/decode/ad_lavc.c
index fd09eca0b7..4768349ec3 100644
--- a/audio/decode/ad_lavc.c
+++ b/audio/decode/ad_lavc.c
@@ -59,7 +59,7 @@ struct ad_lavc_params {
const struct m_sub_options ad_lavc_conf = {
.opts = (const m_option_t[]) {
- OPT_FLOATRANGE("ac3drc", ac3drc, 0, 0, 2),
+ OPT_FLOATRANGE("ac3drc", ac3drc, 0, 0, 6),
OPT_FLAG("downmix", downmix, 0),
OPT_INTRANGE("threads", threads, 0, 1, 16),
OPT_KEYVALUELIST("o", avopts, 0),
@@ -67,7 +67,7 @@ const struct m_sub_options ad_lavc_conf = {
},
.size = sizeof(struct ad_lavc_params),
.defaults = &(const struct ad_lavc_params){
- .ac3drc = 1.,
+ .ac3drc = 0,
.downmix = 1,
.threads = 1,
},