]> git.sesse.net Git - ffmpeg/commit
avformat/matroskaenc: Put subtitles without duration into SimpleBlocks
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Thu, 8 Apr 2021 23:00:51 +0000 (01:00 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Mon, 12 Apr 2021 16:29:23 +0000 (18:29 +0200)
commitb972dab39d81d5f291cea4b9a042beb63386e768
treeb936313f028df92bc2b775593dabfb9a71455cd2
parent85709a90c3517e3429bb1206d26f7238dbd6a1bd
avformat/matroskaenc: Put subtitles without duration into SimpleBlocks

The value zero for AVPacket.duration means that the duration is unknown,
which in practice means "play this subtitle until overridden by the next
subtitle". Yet for Matroska a BlockGroup with duration zero means
that the subtitle really has a duration zero. "Display until overridden"
is achieved by not setting a duration on the container level at all and
this is achieved by using a SimpleBlock or a BlockGroup without
duration. This commit implements this.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavformat/matroskaenc.c