Fix int overrun on files with large scale

This commit is contained in:
Dustin 2022-01-31 04:14:43 -07:00
parent 565db92ae2
commit 0ff238df99

View file

@ -31,7 +31,7 @@ public class StreamHeaderBox extends ResidentBox {
}
public long getDurationUs() {
return getScale() * getLength() * 1_000_000L / getRate();
return 1_000_000L * getScale() * getLength() / getRate();
}
public int getSteamType() {