From 21108ebab6a11812536e1857f661c6400e40315a Mon Sep 17 00:00:00 2001 From: Monty Date: Thu, 18 Jul 2002 01:43:09 +0000 Subject: [PATCH] bump date on vendor string eliminate the ilog2 code that looks broken with clearer code svn path=/trunk/vorbis/; revision=3654 --- lib/info.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/info.c b/lib/info.c index c9f75a9..bb55f88 100644 --- a/lib/info.c +++ b/lib/info.c @@ -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_info(oggpack_buffer *opb,vorbis_info *vi){ } 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 */ -- 2.7.4