diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-14 07:42:04 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-14 07:42:04 +0400 |
commit | 0d584b905a89405b6cfc8c3f8d74e3a5b9976639 (patch) | |
tree | 0c97ef470ba90d0d8d6e16ca0c3601b7cdca2979 | |
parent | a71c9adf526685024baa46a1e6266264a1aeb866 (diff) |
Prevents LFE from busting at really low bitrate
-rw-r--r-- | celt/celt_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/celt/celt_encoder.c b/celt/celt_encoder.c index 6949adb4..5bb86c52 100644 --- a/celt/celt_encoder.c +++ b/celt/celt_encoder.c @@ -1462,7 +1462,7 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm, { int enabled; int qg; - enabled = (st->lfe || nbAvailableBytes>12*C) && st->start==0 && !silence && !st->disable_pf + enabled = ((st->lfe&&nbAvailableBytes>3) || nbAvailableBytes>12*C) && st->start==0 && !silence && !st->disable_pf && st->complexity >= 5 && !(st->consec_transient && LM!=3 && st->variable_duration==OPUS_FRAMESIZE_VARIABLE); prefilter_tapset = st->tapset_decision; |