]> git.sesse.net Git - ffmpeg/commit
avformat/matroskaenc: Unify writing level 1 elements preliminarily
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 29 Apr 2020 04:31:07 +0000 (06:31 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 6 May 2020 07:45:17 +0000 (09:45 +0200)
commit851283a777b7f841eed49ff6d0417aa18c9d732e
tree016e2b68496320768e6c54d10de44c470f47c4b3
parent4ed3c925c370aa8dd0658d8248a1a60ac2c70337
avformat/matroskaenc: Unify writing level 1 elements preliminarily

The Matroska muxer updates several header elements when the output is
seekable; if unseekable, the buffer containing the contents of the element
is immediately freed after writing. Before this commit, there were three
places doing exactly the same: Checking whether the output is seekable
and calling the function that writes and frees or the function that
just writes the EBML master. This has been unified; adding SeekHead
entries for these elements has been unified, too.

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