oggdec: give it enough chance to seek from the start, where first seek might be still too close to the beginning of the file
This commit is contained in:
parent
5405ee61ae
commit
de34481f8b
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ BOS:/* Begin of stream */
|
|||
}else{
|
||||
if(seeking){
|
||||
time = vorbis_granule_time(&vd, ogg_page_granulepos(&og));
|
||||
if(time > left && time < right && time - lasttime > 0.1){
|
||||
if(time > left && time < right && (time - lasttime > 0.1 || lasttime < 0.1)){
|
||||
if(time > seek)
|
||||
right = time;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue