mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fix bug where pos could move to before the beginning of the file
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user