diff options
author | Monty <xiphmont@xiph.org> | 2001-06-18 22:19:26 +0000 |
---|---|---|
committer | Monty <xiphmont@xiph.org> | 2001-06-18 22:19:26 +0000 |
commit | 1e5e61342bfe996bc153175cb1a5d0ddb8befc9a (patch) | |
tree | 0b521e0764c936dad0cc23556fcf05574cdcd23f | |
parent | 551e06489627c7c795f48ebf7e496e1ad4db549a (diff) | |
download | libvorbis-git-1e5e61342bfe996bc153175cb1a5d0ddb8befc9a.tar.gz |
two bugs:
a missing const cast
forgot to initilize a loop counter (!)
Monty
svn path=/trunk/vorbis/; revision=1507
-rw-r--r-- | lib/codebook.c | 4 | ||||
-rw-r--r-- | lib/psy.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/codebook.c b/lib/codebook.c index d58723b2..0a9f04b2 100644 --- a/lib/codebook.c +++ b/lib/codebook.c @@ -11,7 +11,7 @@ ******************************************************************** function: basic codebook pack/unpack/code/decode operations - last mod: $Id: codebook.c,v 1.26 2001/06/15 21:15:39 xiphmont Exp $ + last mod: $Id: codebook.c,v 1.27 2001/06/18 22:19:26 xiphmont Exp $ ********************************************************************/ @@ -360,7 +360,7 @@ long vorbis_book_decodevs_add(codebook *book,float *a,oggpack_buffer *b,int n){ } long vorbis_book_decodev_add(codebook *book,float *a,oggpack_buffer *b,int n){ - int i,j,entry; + int i,j=0,entry; float *t; if(book->dim>8){ @@ -11,7 +11,7 @@ ******************************************************************** function: psychoacoustics not including preecho - last mod: $Id: psy.c,v 1.47 2001/06/18 09:07:31 xiphmont Exp $ + last mod: $Id: psy.c,v 1.48 2001/06/18 22:19:26 xiphmont Exp $ ********************************************************************/ @@ -693,7 +693,7 @@ float _vp_compute_mask(vorbis_look_psy *p, p->vi->noisewindowhimin, p->noisemedian, p->noiseoffset, - p->vi->noisewindowfixed); + (const long *)(p->vi->noisewindowfixed)); /* suppress any noise curve > specmax+p->vi->noisemaxsupp */ for(i=0;i<n;i++) if(mask[i]>specmax+p->vi->noisemaxsupp) |