[xiph-commits] r15921 - trunk/vorbis/lib
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Tue Apr 7 17:53:57 PDT 2009
Author: xiphmont
Date: 2009-04-07 17:53:57 -0700 (Tue, 07 Apr 2009)
New Revision: 15921
Modified:
trunk/vorbis/lib/vorbisfile.c
Log:
Patch for "seek broken for large files and on pure 32 bit architectures"
Modified: trunk/vorbis/lib/vorbisfile.c
===================================================================
--- trunk/vorbis/lib/vorbisfile.c 2009-04-08 00:48:27 UTC (rev 15920)
+++ trunk/vorbis/lib/vorbisfile.c 2009-04-08 00:53:57 UTC (rev 15921)
@@ -1324,8 +1324,9 @@
bisect=begin;
}else{
/* take a (pretty decent) guess. */
- bisect=begin +
- (target-begintime)*(end-begin)/(endtime-begintime) - CHUNKSIZE;
+ bisect=begin +
+ (ogg_int64_t)((double)(target-begintime)*(end-begin)/(endtime-begintime))
+ - CHUNKSIZE;
if(bisect<=begin)
bisect=begin+1;
}
More information about the commits
mailing list