]> git.sesse.net Git - ffmpeg/commit
avformat/matroskaenc: Rename functions to better reflect what they do
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 15 Apr 2020 01:39:37 +0000 (03:39 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 20 Apr 2020 19:30:46 +0000 (21:30 +0200)
commit40d038a63531bac12fca50e3b0f6f55037733671
treeac9ce0234354745a02c1b0808af0290d7d3bb87c
parent9b0f9003dfab6a230d46aaa94091bf509d889f37
avformat/matroskaenc: Rename functions to better reflect what they do

EBML uses variable length integers both for the EBML IDs as well as for
the EBML lengths; Matroska also uses them for the TrackNumber in
(Simple)Blocks and for the lengths of laces when EBML lacing is used.

When encoding EBML lengths, certain encodings have a special meaning,
namely that the element has an unknown length. This is not so when
encoding general EBML variable length integers.

Yet the functions called ebml_num_size() and put_ebml_num() had this
special meaning hardcoded, i.e. they are there to write EBML lengths and
not general EBML numbers. So rename them.

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