]> git.sesse.net Git - ffmpeg/commit
avformat/matroskaenc: Avoid allocation for Cues
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 30 Dec 2019 14:37:15 +0000 (15:37 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 30 Mar 2020 03:43:44 +0000 (05:43 +0200)
commit5cdd2ebb55f760d06d35b71a421b8433851b92e9
tree4e1cec52db91c7eadfbf09d8c1726da981874c13
parent6cf69f0e72d6429ed54db0a21f165da7b06ca7e4
avformat/matroskaenc: Avoid allocation for Cues

Up until now, the Matroska muxer would allocate a structure containing
three members: The segment offset, a pointer to an array containing Cue
(index) entries and a counter for said array. It is unnecessary to
allocate it separately and it is unnecessary to contain the segment
offset in said structure, as it duplicates another field contained in
the MatroskaMuxContext. This commit implements the corresponding
changes.

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