]> git.sesse.net Git - ffmpeg/commit
avformat/matroskaenc: Add check for using explicit TrackNumber
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 1 Nov 2019 10:49:47 +0000 (11:49 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 21 Apr 2020 05:31:10 +0000 (07:31 +0200)
commit86de864741fdc046f353a82da526445db44c4287
treeb623eb80ded8eee53341edd1d52914c2eb659f5e
parent945b92873061c66b82df892887cd9baf8146857b
avformat/matroskaenc: Add check for using explicit TrackNumber

When creating DASH streams, the TrackNumber is externally prescribed
and not derived from the number of streams in the AVFormatContext, so
if the number of tracks for a file using an explicit TrackNumber was
more than one, the resulting file would be broken (it would be impossible
to tell to which track a Block belongs if different tracks share the
same TrackNumber). So disallow this.

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