]> git.sesse.net Git - ffmpeg/commit
avformat/matroskaenc: Improve Cues in case of no video
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 29 Dec 2019 02:14:53 +0000 (03:14 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 20 Apr 2020 19:30:46 +0000 (21:30 +0200)
commit945b92873061c66b82df892887cd9baf8146857b
treed516954777063375a99d63f732dbb9f9788c978a
parent13c12cd4702e621c7363be8f22a8b55c22a31a02
avformat/matroskaenc: Improve Cues in case of no video

The Matroska muxer currently only adds CuePoints in three cases:
a) For video keyframes. b) For the first audio frame in a new Cluster if
in DASH-mode. c) For subtitles. This means that ordinary Matroska audio
files won't have any Cues which impedes seeking.

This commit changes this. For every track in a file without video track
it is checked and tracked whether a Cue entry has already been added
for said track for the current Cluster. This is used to add a Cue entry
for each first packet of each track in each Cluster.

Implements #3149.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/matroskaenc.c
tests/ref/fate/aac-autobsf-adtstoasc
tests/ref/fate/matroska-flac-extradata-update
tests/ref/lavf/mka