svn path=/trunk/vorbis/; revision=17176
bisect=begin +
(ogg_int64_t)((double)(target-begintime)*(end-begin)/(endtime-begintime))
- CHUNKSIZE;
- if(bisect<=begin)
- bisect=begin+1;
+ if(bisect>begin+CHUNKSIZE){
+ result=_seek_helper(vf,bisect);
+ if(result) goto seek_error;
+ }else{
+ bisect=begin;
+ }
}
- result=_seek_helper(vf,bisect);
- if(result) goto seek_error;
-
while(begin<end){
result=_get_next_page(vf,&og,end-vf->offset);
if(result==OV_EREAD) goto seek_error;