ref: 5378bf82530b1d431c34010f693637cb826fbc51
parent: 6c79a9325c328f86fa048bf124ff6a8912a60a3e
author: John Ridges <[email protected]>
date: Fri Feb 12 02:08:01 EST 2010
Updating CELT_RESET_STATE to clear some fields that were "recently" added.
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -1040,6 +1040,16 @@
CELT_MEMSET(st->preemph_memE, 0, C);
CELT_MEMSET(st->preemph_memD, 0, C);
st->delayedIntra = 1;
+
+ st->fold_decision = 1;
+ st->tonal_average = QCONST16(1.,8);
+ st->gain_prod = 0;
+ st->vbr_reservoir = 0;
+ st->vbr_drift = 0;
+ st->vbr_offset = 0;
+ st->vbr_count = 0;
+ st->xmem = 0;
+ CELT_MEMSET(st->pitch_buf, 0, (MAX_PERIOD>>1)+2);
}
break;
default:
@@ -1629,6 +1639,10 @@
CELT_MEMSET(st->preemph_memD, 0, C);
st->loss_count = 0;
+
+#ifdef NEW_PLC
+ CELT_MEMSET(st->lpc, 0, C*LPC_ORDER);
+#endif
}
break;
default: