ref: 0d584b905a89405b6cfc8c3f8d74e3a5b9976639
parent: a71c9adf526685024baa46a1e6266264a1aeb866
author: Jean-Marc Valin <[email protected]>
date: Wed Nov 13 17:42:04 EST 2013
Prevents LFE from busting at really low bitrate
--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -1462,7 +1462,7 @@
{
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;