diff options
author | Segher Boessenkool <segher@xiph.org> | 2001-10-02 00:14:33 +0000 |
---|---|---|
committer | Segher Boessenkool <segher@xiph.org> | 2001-10-02 00:14:33 +0000 |
commit | 238e4a021632442d6230ac4940e20c53ced636d6 (patch) | |
tree | ef57c2e07f6debc19995dae921bb55200ba5ff5f /lib/synthesis.c | |
parent | 84253f30f6763e693eb0b58b18d8a53075099151 (diff) | |
download | libvorbis-git-238e4a021632442d6230ac4940e20c53ced636d6.tar.gz |
sizeof() cleanup. the occasional void * didn't make this easier.
two bugs in vorbisfile found and fixed.
svn path=/trunk/vorbis/; revision=2105
Diffstat (limited to 'lib/synthesis.c')
-rw-r--r-- | lib/synthesis.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/synthesis.c b/lib/synthesis.c index 57c6f1d6..08576769 100644 --- a/lib/synthesis.c +++ b/lib/synthesis.c @@ -11,7 +11,7 @@ ******************************************************************** function: single-block PCM synthesis - last mod: $Id: synthesis.c,v 1.23 2001/08/13 01:36:57 xiphmont Exp $ + last mod: $Id: synthesis.c,v 1.24 2001/10/02 00:14:32 segher Exp $ ********************************************************************/ @@ -63,9 +63,9 @@ int vorbis_synthesis(vorbis_block *vb,ogg_packet *op){ /* alloc pcm passback storage */ vb->pcmend=ci->blocksizes[vb->W]; - vb->pcm=_vorbis_block_alloc(vb,sizeof(float *)*vi->channels); + vb->pcm=_vorbis_block_alloc(vb,sizeof(*vb->pcm)*vi->channels); for(i=0;i<vi->channels;i++) - vb->pcm[i]=_vorbis_block_alloc(vb,vb->pcmend*sizeof(float)); + vb->pcm[i]=_vorbis_block_alloc(vb,vb->pcmend*sizeof(*vb->pcm[i])); /* unpack_header enforces range checking */ type=ci->map_type[ci->mode_param[mode]->mapping]; |