[FFmpeg-devel] [PATCH 3/4] mpegts: add fix_teletext_pts mpegts demuxer option

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Jul 28 22:09:52 CEST 2013

On 27.07.2013, at 21:14, Marton Balint <cus at passwd.hu> wrote:
> The option (if set) overrides teletext packet pts with the PCR of a program
> which the teletext stream is part of that is not discarded. Using the same
> teletext PID for multiple programs is possible, therefore we need some kind of
> heuristics to know which program PCR we should synchronize to. Using the first
> non-discarded PCR pid among the programs of the teletext stream seemed like a
> good choice.

Maybe it would be good to mention that an interpolated pcr (which I believe one of the demuxers has code to calculate) would be more correct?

> +                        if (pkt->dts == AV_NOPTS_VALUE || pkt->dts < pcr) {
> +                            pkt->pts = pkt->dts = pcr;

Do you have an example where overwriting a NOPTS is better than just leaving it?
Should we have some FATE test(s) for this code?

More information about the ffmpeg-devel mailing list