mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Fix int overrun on files with large scale
This commit is contained in:
parent
565db92ae2
commit
0ff238df99
1 changed files with 1 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue