Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parsers: increase DVBSUB max timediff (DTS/PCR) #1424

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Preclikos
Copy link

Increase max timediff validity for DVBSUB packages due to HTSP droping SUB packages

src/parsers/parsers.c Outdated Show resolved Hide resolved
@@ -126,8 +126,9 @@ parser_deliver(parser_t *t, parser_es_t *st, th_pkt_t *pkt)
}

diff = st->es_type == SCT_DVBSUB ? 8*90000 : 6*90000;
d = pts_diff(pkt->pkt_pcr, (pkt->pkt_dts + 30000) & PTS_MASK);

dts_increse = st->es_type == SCT_DVBSUB ? 120000 : 30000;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does that magic constant come from? What is diff for and why does increasing diff not work?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I try to find where @perexg pick 30000 from history but not find any usable reason maybe some with ffmpeg sync.
Magic constant come from real data where it is safe constant for fast series od SUB packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants