From f86b2f36612debf10a07300acadba08f7b092bcb Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 6 Aug 2012 20:25:16 +0200 Subject: [PATCH] g723_1: use all LPC vectors in formant postfilter Due to some mistake LPC vector for the first subframe was used for all subframes instead of their own LPC vectors. --- libavcodec/g723_1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c index 9770dd6cf7..aabb03d447 100644 --- a/libavcodec/g723_1.c +++ b/libavcodec/g723_1.c @@ -946,6 +946,7 @@ static void formant_postfilter(G723_1_Context *p, int16_t *lpc, int16_t *buf) } iir_filter(filter_coef[0], filter_coef[1], buf + i, filter_signal + i); + lpc += LPC_ORDER; } memcpy(p->fir_mem, buf + FRAME_LEN, LPC_ORDER * sizeof(*p->fir_mem));