[xiph-cvs] cvs commit: Tremor vorbisfile.c

Monty xiphmont at xiph.org
Wed Oct 16 01:16:11 PDT 2002



xiphmont    02/10/16 04:16:11

  Modified:    .        vorbisfile.c
  Log:
  Fix ov_time_tell() tonot always return a multiple of 1000

Revision  Changes    Path
1.4       +1 -1      Tremor/vorbisfile.c

Index: vorbisfile.c
===================================================================
RCS file: /usr/local/cvsroot/Tremor/vorbisfile.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vorbisfile.c	11 Oct 2002 08:23:10 -0000	1.3
+++ vorbisfile.c	16 Oct 2002 08:16:11 -0000	1.4
@@ -1287,7 +1287,7 @@
     }
   }
 
-  return(time_total+(vf->pcm_offset-pcm_total)/vf->vi[link].rate*1000);
+  return(time_total+(1000*vf->pcm_offset-pcm_total)/vf->vi[link].rate);
 }
 
 /*  link:   -1) return the vorbis_info struct for the bitstream section

<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