[FFmpeg-cvslog] g723_1: increase excitation storage by 4

Kostya Shishkov git at videolan.org
Fri Aug 3 23:30:31 CEST 2012


ffmpeg | branch: master | Kostya Shishkov <kostya.shishkov at gmail.com> | Thu Aug  2 19:15:51 2012 +0200| [94bfdfd6f05a3ccbf048a3ea70694247c2929053] | committer: Kostya Shishkov

g723_1: increase excitation storage by 4

Fixed codebook mode in 5300 rate may write up to SUBFRAME_LEN + 4 and
that is considered normal by the reference decoder. Without that additional
padding it might overwrite first elements of LPC history.

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

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

diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c
index 883c949..0b59f81 100644
--- a/libavcodec/g723_1.c
+++ b/libavcodec/g723_1.c
@@ -87,7 +87,7 @@ typedef struct g723_1_context {
 
     int16_t prev_lsp[LPC_ORDER];
     int16_t prev_excitation[PITCH_MAX];
-    int16_t excitation[PITCH_MAX + FRAME_LEN];
+    int16_t excitation[PITCH_MAX + FRAME_LEN + 4];
     int16_t synth_mem[LPC_ORDER];
     int16_t fir_mem[LPC_ORDER];
     int     iir_mem[LPC_ORDER];



More information about the ffmpeg-cvslog mailing list