avformat/matroskaenc: Don't waste bytes in EBML Header
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 19 Apr 2019 23:40:59 +0000 (01:40 +0200)
committerJames Almer <jamrial@gmail.com>
Wed, 8 May 2019 16:02:29 +0000 (13:02 -0300)
commit4e6df068b5477eeb63a483e93bd63661712131ba
tree3d6432bd595e1cffed725d18751c92627462a06c
parent5d7d0fcd70b9d50f093df6f42f9124be55895575
avformat/matroskaenc: Don't waste bytes in EBML Header

Up until now the EBML Header length field has been written with eight
bytes, although the EBML Header is always so small that only one byte
is needed for it. This patch saves seven bytes for every Matroska/Webm
file.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/matroskaenc.c
tests/fate/matroska.mak
tests/fate/wavpack.mak
tests/ref/fate/aac-autobsf-adtstoasc
tests/ref/fate/binsub-mksenc
tests/ref/fate/rgb24-mkv
tests/ref/lavf/mka
tests/ref/lavf/mkv
tests/ref/lavf/mkv_attachment
tests/ref/seek/lavf-mkv