summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-23 00:44:37 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-23 00:44:37 +0200
commit90d8bbb2257d2638f98b8c6fcfcabc778d9696ff (patch)
tree1fa952c5a4e506d41cf8f63c05d9348a6ed26d06
parent9d53790ed2814cce59b487e20054ee27251cf062 (diff)
downloadmpv-90d8bbb2257d2638f98b8c6fcfcabc778d9696ff.tar.bz2
mpv-90d8bbb2257d2638f98b8c6fcfcabc778d9696ff.tar.xz
ad_liba52: fix -a52drc handling
Custom values other than 0 were ignored. Fix.
-rw-r--r--libmpcodecs/ad_liba52.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/ad_liba52.c b/libmpcodecs/ad_liba52.c
index 9cea6a0016..45126a0786 100644
--- a/libmpcodecs/ad_liba52.c
+++ b/libmpcodecs/ad_liba52.c
@@ -210,7 +210,7 @@ static int init(sh_audio_t *sh_audio)
if (opts->drc_level < 0.001) {
/* level == 0 --> no compression, init library without callback */
a52_drc_action = DRC_NO_COMPRESSION;
- } else if (opts->drc_level > 0.999 || opts->drc_level < 1.001) {
+ } else if (opts->drc_level > 0.999 && opts->drc_level < 1.001) {
/* level == 1 --> full compression, do nothing at all (library default = full compression) */
a52_drc_action = DRC_NO_ACTION;
} else {