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:
Sigrid 2020-08-18 16:45:00 +02:00
parent 5405ee61ae
commit de34481f8b

View file

@ -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