summaryrefslogtreecommitdiff
path: root/apps/codecs/libtremor/synthesis.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libtremor/synthesis.c')
-rw-r--r--apps/codecs/libtremor/synthesis.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/codecs/libtremor/synthesis.c b/apps/codecs/libtremor/synthesis.c
index a882a6d07a..464c777605 100644
--- a/apps/codecs/libtremor/synthesis.c
+++ b/apps/codecs/libtremor/synthesis.c
@@ -26,6 +26,7 @@
26 26
27 27
28static ogg_int32_t *ipcm_vect[CHANNELS] IBSS_ATTR; 28static ogg_int32_t *ipcm_vect[CHANNELS] IBSS_ATTR;
29int32_t staticbuffer[16384];
29 30
30int vorbis_synthesis(vorbis_block *vb,ogg_packet *op,int decodep) 31int vorbis_synthesis(vorbis_block *vb,ogg_packet *op,int decodep)
31 ICODE_ATTR_TREMOR_NOT_MDCT; 32 ICODE_ATTR_TREMOR_NOT_MDCT;
@@ -67,7 +68,8 @@ int vorbis_synthesis(vorbis_block *vb,ogg_packet *op,int decodep){
67 vb->sequence=op->packetno-3; /* first block is third packet */ 68 vb->sequence=op->packetno-3; /* first block is third packet */
68 vb->eofflag=op->e_o_s; 69 vb->eofflag=op->e_o_s;
69 70
70 if(decodep && vi->channels<=CHANNELS){ 71 if(decodep && vi->channels<=CHANNELS)
72 {
71 vb->pcm = ipcm_vect; 73 vb->pcm = ipcm_vect;
72 74
73 /* set pcm end point */ 75 /* set pcm end point */
@@ -81,6 +83,7 @@ int vorbis_synthesis(vorbis_block *vb,ogg_packet *op,int decodep){
81 by simply flipping pointers */ 83 by simply flipping pointers */
82 for(i=0; i<vi->channels; i++) 84 for(i=0; i<vi->channels; i++)
83 vb->pcm[i] = &vd->first_pcm[i*ci->blocksizes[1]]; 85 vb->pcm[i] = &vd->first_pcm[i*ci->blocksizes[1]];
86
84 } 87 }
85 vd->reset_pcmb = false; 88 vd->reset_pcmb = false;
86 89