Don't enable the post-filter in Opus hybrid mode
authorJean-Marc Valin <jean-marc.valin@octasic.com>
Tue, 21 Dec 2010 21:30:01 +0000 (16:30 -0500)
committerJean-Marc Valin <jean-marc.valin@octasic.com>
Tue, 21 Dec 2010 21:30:01 +0000 (16:30 -0500)
libcelt/celt.c

index 0e2f286..d1d0180 100644 (file)
@@ -824,7 +824,7 @@ int celt_encode_with_ec_float(CELTEncoder * restrict st, const celt_sig * pcm, i
       } while (++c<C);
 
 #ifdef ENABLE_POSTFILTER
-      if (nbAvailableBytes>12*C)
+      if (nbAvailableBytes>12*C && st->start==0)
       {
          VARDECL(celt_word16, pitch_buf);
          ALLOC(pitch_buf, (COMBFILTER_MAXPERIOD+N)>>1, celt_word16);