diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-09 01:00:51 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-12 18:29:23 +0200 |
commit | b972dab39d81d5f291cea4b9a042beb63386e768 (patch) | |
tree | b936313f028df92bc2b775593dabfb9a71455cd2 /libavcodec/jpeglsenc.c | |
parent | 85709a90c3517e3429bb1206d26f7238dbd6a1bd (diff) | |
download | ffmpeg-b972dab39d81d5f291cea4b9a042beb63386e768.tar.gz |
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>
Diffstat (limited to 'libavcodec/jpeglsenc.c')
0 files changed, 0 insertions, 0 deletions