Skip to content

Conversation

@slifty
Copy link
Member

@slifty slifty commented May 31, 2021

Description

This PR removes logic that prevented pts from ever decreasing. This means that when pts rolls over during a very long stream the demuxer will reflect the new pts. It is the responsibility of the consuming code to handle this event.

Related Issues

Resolves #18

The MPEG-TS pts field can roll over after a stream has been on for
a sufficiently long time (e.g. a week or so).

There was a failsafe built into the demuxer that would prevent PTS from
ever decreasing -- this was because normally PTS is not supposed to
decrease (outside of rollovers).

This change now assumes that the data stream will be passed in order in
order to maintain that PTS condition.

Issue #18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow zero rollover in mpegts-demuxer

2 participants