[xiph-cvs] cvs commit: vorbis/lib info.c
Monty
xiphmont at xiph.org
Wed Jul 17 18:43:09 PDT 2002
xiphmont 02/07/17 18:43:09
Modified: lib info.c
Log:
bump date on vendor string
eliminate the ilog2 code that looks broken with clearer code
Revision Changes Path
1.59 +4 -3 vorbis/lib/info.c
Index: info.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/info.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -r1.58 -r1.59
--- info.c 2002/07/13 06:21:18 1.58
+++ info.c 2002/07/18 01:43:09 1.59
@@ -11,7 +11,7 @@
********************************************************************
function: maintain the info structure, info <-> header packets
- last mod: $Id: info.c,v 1.58 2002/07/13 06:21:18 xiphmont Exp $
+ last mod: $Id: info.c,v 1.59 2002/07/18 01:43:09 xiphmont Exp $
********************************************************************/
@@ -34,7 +34,8 @@
/* helpers */
static int ilog2(unsigned int v){
int ret=0;
- while(v>1){
+ if(v)--v;
+ while(v){
ret++;
v>>=1;
}
@@ -415,7 +416,7 @@
}
static int _vorbis_pack_comment(oggpack_buffer *opb,vorbis_comment *vc){
- char temp[]="Xiph.Org libVorbis I 20020713";
+ char temp[]="Xiph.Org libVorbis I 20020717";
int bytes = strlen(temp);
/* preamble */
<p><p><p>--- >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