[xiph-cvs] cvs commit: vorbis/lib res0.c
Monty
xiphmont at xiph.org
Mon Aug 13 03:01:05 PDT 2001
xiphmont 01/08/13 03:01:04
Modified: lib res0.c
Log:
fixed a major decode bug in residue 1
Revision Changes Path
1.34 +8 -8 vorbis/lib/res0.c
Index: res0.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/res0.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- res0.c 2001/08/13 01:36:57 1.33
+++ res0.c 2001/08/13 10:01:04 1.34
@@ -11,7 +11,7 @@
********************************************************************
function: residue backend 0, 1 and 2 implementation
- last mod: $Id: res0.c,v 1.33 2001/08/13 01:36:57 xiphmont Exp $
+ last mod: $Id: res0.c,v 1.34 2001/08/13 10:01:04 xiphmont Exp $
********************************************************************/
@@ -71,10 +71,10 @@
vorbis_look_residue0 *look=(vorbis_look_residue0 *)i;
- /*fprintf(stderr,"residue bit usage %f:%f (%f total)\n",
+ fprintf(stderr,"residue bit usage %f:%f (%f total)\n",
(float)look->phrasebits/look->frames,
(float)look->postbits/look->frames,
- (float)(look->postbits+look->phrasebits)/look->frames);*/
+ (float)(look->postbits+look->phrasebits)/look->frames);
/*vorbis_info_residue0 *info=look->info;
@@ -531,8 +531,8 @@
/* training hack */
if(val<look->phrasebook->entries)
ret=vorbis_book_encode(look->phrasebook,val,&vb->opb);
- /*else
- fprintf(stderr,"!");*/
+ else
+ fprintf(stderr,"!");
look->phrasebits+=ret;
@@ -559,7 +559,7 @@
}
}
- /*{
+ {
long total=0;
long totalbits=0;
fprintf(stderr,"%d :: ",vb->mode);
@@ -568,9 +568,9 @@
total+=resvals[k];
totalbits+=resbits[k];
}
-
+
fprintf(stderr,":: %ld:%1.2g\n",total,(double)totalbits/total);
- }*/
+ }
return(0);
}
--- >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