-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support input with non-monotonic dts
This fixes issue #1. It appears there are inputs where the dts fluctuates. This is apparently inputs that are not well formed. However, I discovered that ffmpeg itself allows for this. If it detects this happening, it updates the pts/dts of the packet. To do this, it tracks the last output dts. This ensures the output dts is monotonic even if the input is not. I use essentially the same approach as in ffmpeg.
- Loading branch information
Showing
2 changed files
with
55 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters