Commit 75ade212 authored by Monty's avatar Monty
Browse files

Patch for "seek broken for large files and on pure 32 bit architectures"

svn path=/trunk/vorbis/; revision=15921
parent ccf6f980
......@@ -1325,7 +1325,8 @@ int ov_pcm_seek_page(OggVorbis_File *vf,ogg_int64_t pos){
}else{
/* take a (pretty decent) guess. */
bisect=begin +
(target-begintime)*(end-begin)/(endtime-begintime) - CHUNKSIZE;
(ogg_int64_t)((double)(target-begintime)*(end-begin)/(endtime-begintime))
- CHUNKSIZE;
if(bisect<=begin)
bisect=begin+1;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment