g729dec: initialize pitch_delay_int_prev to the minimum valid value.
[ffmpeg.git] / libavcodec / g729dec.c
index 2f70115814cd562714cbc4b95b2d5544ec923267..3a8f65a3c211f62be669b4ca1c954c067bee5eff 100644 (file)
@@ -371,6 +371,8 @@ static av_cold int decoder_init(AVCodecContext * avctx)
 
     ctx->exc = &ctx->exc_base[PITCH_DELAY_MAX+INTERPOL_LEN];
 
+    ctx->pitch_delay_int_prev = PITCH_DELAY_MIN;
+
     /* random seed initialization */
     ctx->rand_value = 21845;