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

Monty xiphmont at xiph.org
Fri Feb 9 17:13:16 PST 2001



xiphmont    01/02/09 17:13:15

  Modified:    lib      codebook.c
  Log:
  Replaced a mistaken sizeof(float) with sizeof(long); probable cause of
  Alpha codebook crashes.
  
  Monty

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

Index: codebook.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/codebook.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- codebook.c	2001/02/02 03:51:55	1.21
+++ codebook.c	2001/02/10 01:13:14	1.22
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: basic codebook pack/unpack/code/decode operations
- last mod: $Id: codebook.c,v 1.21 2001/02/02 03:51:55 xiphmont Exp $
+ last mod: $Id: codebook.c,v 1.22 2001/02/10 01:13:14 xiphmont Exp $
 
  ********************************************************************/
 
@@ -233,7 +233,7 @@
       }
       
       /* quantized values */
-      s->quantlist=_ogg_malloc(sizeof(float)*quantvals);
+      s->quantlist=_ogg_malloc(sizeof(long)*quantvals);
       for(i=0;i<quantvals;i++)
         s->quantlist[i]=oggpack_read(opb,s->q_quant);
       

--- >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