From 90d8bbb2257d2638f98b8c6fcfcabc778d9696ff Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Tue, 23 Nov 2010 00:44:37 +0200 Subject: ad_liba52: fix -a52drc handling Custom values other than 0 were ignored. Fix. --- libmpcodecs/ad_liba52.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3