forked from FFmpeg/FFmpeg
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libavformat/matroskadec: set fixed duration for subtitles
The matroska specification states the start time and duration of subtitle entries (of any format) are always encoded in the block TimeStamp and BlockDuration. The duration of those packets should be considered absolute/fixed and should not ever change throughout the pipeline, even if the duration is 0. Currently the demuxer corrects the initial subtitle packets duration with the pts of the first subtitle which the duration is not 0. While this mechanism might be useful for other use-cases (e.g. for sub formats without end time) it is not valid for matroska. Hence, it introduces AV_PKT_FLAG_FIXED_DURATION flag which decoders might use to flag the duration of a given packet should not be changed. Signed-off-by: Miguel Borges de Freitas <enen92@kodi.tv>
- Loading branch information
Showing
3 changed files
with
10 additions
and
1 deletion.
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
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