...and correct a typo
authorMonty <xiphmont@xiph.org>
Mon, 7 Feb 2000 19:49:56 +0000 (19:49 +0000)
committerMonty <xiphmont@xiph.org>
Mon, 7 Feb 2000 19:49:56 +0000 (19:49 +0000)
svn path=/trunk/vorbis/; revision=253

vq/build.c

index f191813..5e074e5 100644 (file)
@@ -12,7 +12,7 @@
  ********************************************************************
 
  function: utility main for building codebooks from training sets
- last mod: $Id: build.c,v 1.10 2000/02/07 19:39:45 xiphmont Exp $
+ last mod: $Id: build.c,v 1.11 2000/02/07 19:49:56 xiphmont Exp $
 
  ********************************************************************/
 
@@ -253,7 +253,7 @@ int main(int argc,char *argv[]){
   for(j=0;j<c.encode_tree->aux;){
     fprintf(out,"\t");
     for(k=0;k<8 && j<c.encode_tree->aux;k++,j++)
-      fprintf(out,"%6ld,",c.encode_tree->p[j]*c.elements);
+      fprintf(out,"%6ld,",c.encode_tree->p[j]*c.dim);
     fprintf(out,"\n");
   }
   fprintf(out,"};\n\n");
@@ -263,7 +263,7 @@ int main(int argc,char *argv[]){
   for(j=0;j<c.encode_tree->aux;){
     fprintf(out,"\t");
     for(k=0;k<8 && j<c.encode_tree->aux;k++,j++)
-      fprintf(out,"%6ld,",c.encode_tree->q[j]*c.elements);
+      fprintf(out,"%6ld,",c.encode_tree->q[j]*c.dim);
     fprintf(out,"\n");
   }
   fprintf(out,"};\n\n");