Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: force negative frame durations to zero (#769)
Non monotonic streams can produce negative sample duration and result in RangeError: "value" argument is out of bounds. This isn't correct behaviour, but by setting the duration to zero a crash is prevented. Fixes #294 Fixes #652 Co-authored-by: Alexander Kharkov <[email protected]>
- Loading branch information