From: drowe67 Date: Sun, 30 Apr 2017 21:09:41 +0000 (+0000) Subject: error that was casuing sm1000 to crash - need one extra storage for phase H[] X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=2ba1e7112db21b287ccc7f9ccc518eb52da7b26c;p=freetel-svn-tracking.git error that was casuing sm1000 to crash - need one extra storage for phase H[] git-svn-id: https://svn.code.sf.net/p/freetel/code@3114 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/src/codec2.c b/codec2-dev/src/codec2.c index 2edbdbe7..9d35a630 100644 --- a/codec2-dev/src/codec2.c +++ b/codec2-dev/src/codec2.c @@ -2012,7 +2012,7 @@ void synthesise_one_frame(struct CODEC2 *c2, short speech[], MODEL *model, COMP phase_synth_zero_order(model, &c2->ex_phase, H); } else { /* LPC based phase synthesis */ - COMP H[MAX_AMP]; + COMP H[MAX_AMP+1]; sample_phase(model, H, Aw); phase_synth_zero_order(model, &c2->ex_phase, H); }