error that was casuing sm1000 to crash - need one extra storage for phase H[]
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 30 Apr 2017 21:09:41 +0000 (21:09 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 30 Apr 2017 21:09:41 +0000 (21:09 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@3114 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/src/codec2.c

index 2edbdbe7ea779592b25387993b69190df81a5626..9d35a630cd4fbb811098fbb293697a86fb7d39cc 100644 (file)
@@ -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);
     }