diff options
Diffstat (limited to 'apps/codecs/Tremor/synthesis.c')
-rw-r--r-- | apps/codecs/Tremor/synthesis.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/Tremor/synthesis.c b/apps/codecs/Tremor/synthesis.c index db178e7e9f..d01a7aaa64 100644 --- a/apps/codecs/Tremor/synthesis.c +++ b/apps/codecs/Tremor/synthesis.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #define CHANNELS 2 | 33 | #define CHANNELS 2 |
34 | 34 | ||
35 | static ogg_int32_t *ipcm_vect[CHANNELS] IDATA_ATTR; | 35 | static ogg_int32_t *ipcm_vect[CHANNELS] IDATA_ATTR; |
36 | static ogg_int32_t ipcm_buff[CHANNELS*IRAM_PCM_END] IDATA_ATTR; | 36 | static ogg_int32_t ipcm_buff[CHANNELS*IRAM_PCM_END] IDATA_ATTR LINE_ATTR; |
37 | 37 | ||
38 | int vorbis_synthesis(vorbis_block *vb,ogg_packet *op,int decodep){ | 38 | int vorbis_synthesis(vorbis_block *vb,ogg_packet *op,int decodep){ |
39 | vorbis_dsp_state *vd=vb->vd; | 39 | vorbis_dsp_state *vd=vb->vd; |
@@ -73,10 +73,10 @@ int vorbis_synthesis(vorbis_block *vb,ogg_packet *op,int decodep){ | |||
73 | vb->sequence=op->packetno-3; /* first block is third packet */ | 73 | vb->sequence=op->packetno-3; /* first block is third packet */ |
74 | vb->eofflag=op->e_o_s; | 74 | vb->eofflag=op->e_o_s; |
75 | 75 | ||
76 | if(decodep){ | 76 | if(decodep && vi->channels<=CHANNELS){ |
77 | /* alloc pcm passback storage */ | 77 | /* alloc pcm passback storage */ |
78 | vb->pcmend=ci->blocksizes[vb->W]; | 78 | vb->pcmend=ci->blocksizes[vb->W]; |
79 | if (vi->channels <= CHANNELS && vb->pcmend<=IRAM_PCM_END) { | 79 | if (vb->pcmend<=IRAM_PCM_END) { |
80 | /* use statically allocated iram buffer */ | 80 | /* use statically allocated iram buffer */ |
81 | vb->pcm = ipcm_vect; | 81 | vb->pcm = ipcm_vect; |
82 | for(i=0; i<CHANNELS; i++) | 82 | for(i=0; i<CHANNELS; i++) |