fix bug where pos could move to before the beginning of the file
This commit is contained in:
parent
10cffdd2e7
commit
674653ffac
@ -453,6 +453,8 @@ bool seek_to_absolute_sample_(FLAC__FileDecoder *decoder, long filesize, uint64
|
||||
}
|
||||
if(pos < l)
|
||||
pos = l;
|
||||
if(pos < 0)
|
||||
pos = 0;
|
||||
last_frame_sample = this_frame_sample;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user