]> git.sesse.net Git - ffmpeg/commit
avformat/matroskaenc: Only write Tracks if there is a track
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 29 Dec 2019 02:26:05 +0000 (03:26 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 21 Apr 2020 05:49:39 +0000 (07:49 +0200)
commita9844341f78e6eba78a9bb503e71a5d9e3ceea81
treee69ccb800507302853225b6b0eae62b4d4ed70e6
parentef45cccc81d5f0deff2c69d223bf0bd7c0012294
avformat/matroskaenc: Only write Tracks if there is a track

The Matroska muxer does not write every stream as a Matroska track;
some streams are written as AttachedFile. But should no stream be
written as a Matroska track, the Matroska muxer would nevertheless
write a Tracks element without a TrackEntry. This is against the spec.
This commit changes this and only writes a Tracks if there is a Matroska
track.

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