two bugs:
authorMonty <xiphmont@xiph.org>
Mon, 18 Jun 2001 22:19:26 +0000 (22:19 +0000)
committerMonty <xiphmont@xiph.org>
Mon, 18 Jun 2001 22:19:26 +0000 (22:19 +0000)
a missing const cast
forgot to initilize a loop counter (!)

Monty

svn path=/trunk/vorbis/; revision=1507

lib/codebook.c
lib/psy.c

index d58723b..0a9f04b 100644 (file)
@@ -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){
index 467316c..bb22b30 100644 (file)
--- a/lib/psy.c
+++ b/lib/psy.c
@@ -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)