diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2012-08-02 19:15:51 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2012-08-03 07:07:07 +0200 |
commit | 94bfdfd6f05a3ccbf048a3ea70694247c2929053 (patch) | |
tree | 771ce2b6f3a0fe1249d169e3e77713de906e27be /libavcodec | |
parent | 802bcdcb2f177b84cdf8e0197338a808fc26fbff (diff) | |
download | ffmpeg-94bfdfd6f05a3ccbf048a3ea70694247c2929053.tar.gz |
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.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/g723_1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c index 883c9498a4..0b59f81ff6 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]; |