summaryrefslogtreecommitdiff
path: root/apps/codecs/libtremor/block.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libtremor/block.c')
-rw-r--r--apps/codecs/libtremor/block.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/codecs/libtremor/block.c b/apps/codecs/libtremor/block.c
index 8a461e325f..fe736c8def 100644
--- a/apps/codecs/libtremor/block.c
+++ b/apps/codecs/libtremor/block.c
@@ -164,9 +164,11 @@ static int _vds_init(vorbis_dsp_state *v,vorbis_info *vi){
164 164
165 /* allocate IRAM buffer for the PCM data generated by synthesis */ 165 /* allocate IRAM buffer for the PCM data generated by synthesis */
166 iram_malloc_init(); 166 iram_malloc_init();
167 v->iram_pcm=(ogg_int32_t *)iram_malloc(vi->channels*ci->blocksizes[1]*sizeof(ogg_int32_t)); 167 v->first_pcm=(ogg_int32_t *)iram_malloc(vi->channels*ci->blocksizes[1]*sizeof(ogg_int32_t));
168 if(v->iram_pcm != NULL) v->iram_pcm_storage=ci->blocksizes[1]; 168 /* when can't allocate IRAM buffer, allocate normal RAM buffer */
169 else v->iram_pcm_storage=0; 169 if(v->first_pcm == NULL){
170 v->first_pcm=(ogg_int32_t *)_ogg_malloc(vi->channels*ci->blocksizes[1]*sizeof(ogg_int32_t));
171 }
170 172
171 v->centerW=0; 173 v->centerW=0;
172 174