From 3a56c9e1c67e4af4748484bfb35ed207f200748e Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Sun, 23 Jan 2011 11:34:55 -0500 Subject: [PATCH] prefilter/postfilter now forced off in Opus hybrid mode --- libcelt/celt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libcelt/celt.c b/libcelt/celt.c index 2b320ec7..e9e8d689 100644 --- a/libcelt/celt.c +++ b/libcelt/celt.c @@ -966,7 +966,7 @@ int celt_encode_with_ec_float(CELTEncoder * restrict st, const celt_sig * pcm, i pf_threshold = MAX16(pf_threshold, QCONST16(.2f,15)); if (gain1start==0 && tell+17<=total_bits) ec_enc_bit_logp(enc, 0, 1); gain1 = 0; pf_on = 0; @@ -997,7 +997,7 @@ int celt_encode_with_ec_float(CELTEncoder * restrict st, const celt_sig * pcm, i } /*printf("%d %f\n", pitch_index, gain1);*/ #else /* ENABLE_POSTFILTER */ - if(tell+17<=total_bits) + if(st->start==0 && tell+17<=total_bits) ec_enc_bit_logp(enc, 0, 1); pf_on = 0; #endif /* ENABLE_POSTFILTER */ @@ -2018,7 +2018,7 @@ int celt_decode_with_ec_float(CELTDecoder * restrict st, const unsigned char *da postfilter_gain = 0; postfilter_pitch = 0; postfilter_tapset = 0; - if (tell+17 <= total_bits) + if (st->start==0 && tell+17 <= total_bits) { if(ec_dec_bit_logp(dec, 1)) {