]> git.sesse.net Git - ffmpeg/commit
avformat/matroskaenc: Improve checks for updating Tags
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 22 Jan 2020 18:37:29 +0000 (19:37 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 3 Apr 2020 06:22:04 +0000 (08:22 +0200)
commitaf97a3a4d6b9d199654ab6328c79e6be808ce6f9
tree9c15eea00ded20d8610ba0d70d8800f73b83f003
parent0fc150f048398c9dbb8578f25e916fd356c18a54
avformat/matroskaenc: Improve checks for updating Tags

When updating the Tags at the end, the Matroska muxer would twice check
for whether (!mkv->is_live) is true, despite this code being only executed
if it is. Furthermore, a loop iterates over all the streams even when
there is no Tags element to update at all, because the check for whether
there are Tags is only performed later. This commit fixes this.

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