Mans Rullgard <[EMAIL PROTECTED]> added the comment:

Reimar Döffinger <[EMAIL PROTECTED]> writes:

> Reimar Döffinger <[EMAIL PROTECTED]> added the comment:
>
> Hello,
> On Sun, Feb 17, 2008 at 11:02:07AM -0000, Michael Niedermayer wrote:
>> If they have durations not matching the PTS differences then there ARE
>> discontinuities. And they have to be handled as such.
>> It seems that the "intuitive" definition of duration you have does not
>> match a practically useable one, even less so the existing one in lavf.
>
> I just use the _practically used_ definition of it in MKV and OGG for
> subtitles.
> Which (besides the half-assed, inconsistent approach of mov) are the
> only formats I am aware of that support and use embedded subtitles.

DVDs have subtitles too.  These packets have a PTS and a duration, the
duration often being less than the difference to the next PTS.

I don't quite get what all the fuss is about.  Subtitle streams are
discontinuous by nature, and detecting them as such is hardly a bug.
If something is printing annoying warnings when discontinuities are
detected, this could be silenced without altering any other behaviour.
One way would be to introduce a per-stream "sparse" flag, which if set
would indicate that discontinuities are expected.  The problem then
becomes how to decide when to set this flag.  Presumably setting it
for all subtitle streams is reasonable.  Other streams could also have
it set based on (hypothetical) hints in the container format.

______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue356>
______________________________________________________

Reply via email to