[FFmpeg-cvslog] g723_1: use all LPC vectors in formant postfilter

Kostya Shishkov git at videolan.org
Thu Aug 9 01:02:23 CEST 2012


ffmpeg | branch: master | Kostya Shishkov <kostya.shishkov at gmail.com> | Mon Aug  6 20:25:16 2012 +0200| [f86b2f36612debf10a07300acadba08f7b092bcb] | committer: Kostya Shishkov

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f86b2f36612debf10a07300acadba08f7b092bcb
---

 libavcodec/g723_1.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c
index 9770dd6..aabb03d 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));



More information about the ffmpeg-cvslog mailing list