Addressing issue 115 http://code.google.com/p/webrtc/issues/detail?id=115
Review URL: http://webrtc-codereview.appspot.com/261002

git-svn-id: http://webrtc.googlecode.com/svn/trunk@864 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/src/modules/audio_coding/codecs/iSAC/main/source/encode.c b/src/modules/audio_coding/codecs/iSAC/main/source/encode.c
index 0f79852..2183433 100644
--- a/src/modules/audio_coding/codecs/iSAC/main/source/encode.c
+++ b/src/modules/audio_coding/codecs/iSAC/main/source/encode.c
@@ -1256,8 +1256,8 @@
   int n;
   int err;
   double lpcGain[SUBFRAMES];
-  WebRtc_Word16 realFFT[FRAMESAMPLES];
-  WebRtc_Word16 imagFFT[FRAMESAMPLES];
+  WebRtc_Word16 realFFT[FRAMESAMPLES_HALF];
+  WebRtc_Word16 imagFFT[FRAMESAMPLES_HALF];
 
   /* reset bitstream */
   bitStream->W_upper = 0xFFFFFFFF;
@@ -1302,7 +1302,7 @@
     }
     // store lpc gain
     WebRtcIsac_StoreLpcGainUb(lpcGain, bitStream);
-    for(n = 0; n < FRAMESAMPLES; n++)
+    for(n = 0; n < FRAMESAMPLES_HALF; n++)
     {
       realFFT[n] = (WebRtc_Word16)(scale * (float)ISACSavedEnc_obj->realFFT[n] + 0.5f);
       imagFFT[n] = (WebRtc_Word16)(scale * (float)ISACSavedEnc_obj->imagFFT[n] + 0.5f);
@@ -1331,8 +1331,8 @@
   int n;
   int err;
   double lpcGain[SUBFRAMES << 1];
-  WebRtc_Word16 realFFT[FRAMESAMPLES];
-  WebRtc_Word16 imagFFT[FRAMESAMPLES];
+  WebRtc_Word16 realFFT[FRAMESAMPLES_HALF];
+  WebRtc_Word16 imagFFT[FRAMESAMPLES_HALF];
 
   /* reset bitstream */
   bitStream->W_upper = 0xFFFFFFFF;
@@ -1381,7 +1381,7 @@
     WebRtcIsac_StoreLpcGainUb(lpcGain, bitStream);
     WebRtcIsac_StoreLpcGainUb(&lpcGain[SUBFRAMES], bitStream);
     /* scale FFT coefficients */
-    for(n = 0; n < FRAMESAMPLES; n++)
+    for(n = 0; n < FRAMESAMPLES_HALF; n++)
     {
       realFFT[n] = (WebRtc_Word16)(scale * (float)ISACSavedEnc_obj->realFFT[n] + 0.5f);
       imagFFT[n] = (WebRtc_Word16)(scale * (float)ISACSavedEnc_obj->imagFFT[n] + 0.5f);