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