[xiph-cvs] cvs commit: vorbis/lib codebook.c psy.c

Monty xiphmont at xiph.org
Mon Jun 18 15:19:28 PDT 2001



xiphmont    01/06/18 15:19:27

  Modified:    lib      codebook.c psy.c
  Log:
  two bugs:
  
  a missing const cast
  forgot to initilize a loop counter (!)
  
  Monty

Revision  Changes    Path
1.27      +2 -2      vorbis/lib/codebook.c

Index: codebook.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/codebook.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- codebook.c	2001/06/15 21:15:39	1.26
+++ codebook.c	2001/06/18 22:19:26	1.27
@@ -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_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){

1.48      +2 -2      vorbis/lib/psy.c

Index: psy.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/psy.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- psy.c	2001/06/18 09:07:31	1.47
+++ psy.c	2001/06/18 22:19:26	1.48
@@ -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 @@
                       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)

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list