fixes FST timescale calculation

This commit is contained in:
Eyck Jentzsch 2023-03-15 16:53:40 +01:00
parent 1b7d4c3ed6
commit 14425b9102
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class FstFileParser {
// String version = FstLibrary.fstReaderGetVersionString(fst);
long endTime = FstLibrary.fstReaderGetEndTime(fst);
byte timeScale = FstLibrary.fstReaderGetTimescale(fst);
builder.setMaxTime(endTime, -timeScale);
builder.setMaxTime(endTime, timeScale);
FstLibrary.fstReaderIterateHierRewind(fst);
Pointer p = FstLibrary.fstReaderIterateHier(fst);
while(p!=null && !p.equals(Pointer.NULL)) {