[FFmpeg-devel] [PATCH] timestamp discontinuity in subtitles is OK

Michael Niedermayer michaelni
Mon Oct 6 12:05:41 CEST 2008


On Mon, Oct 06, 2008 at 08:24:45AM -0000, Wolfram Gloger wrote:
> Hi,
> 
> > i think there is a easier solution
> > just check for AVFMT_TS_DISCONT which would prevent misdetection in all
> > containers that do not allow discontinuities.
> 
> But we _do_ have containers with AVFMT_TS_DISCONT which can have
> subtitles in them (dvbsub in mpegts, dvdsub in mpeg), so this wouldn't
> help.

when discontinuities are allowed, then they likely are also allowed
between subtitle packets (but if you disagree, feel free to quote the specs,
id be happy to hear what they say ...),
thus whichever way is used to detect them, the detection should
be needed between subtitle packets as well.

a check for AVFMT_TS_DISCONT is correct, one for subtitles is not AFAICS.
The real question is what do the dvbsub/dvdsub specs say about
discontinuities?

PS: yes, links to the dvd/dvb sub specs are welcome ...

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081006/39321844/attachment.pgp>



More information about the ffmpeg-devel mailing list