avformat/matroskaenc: Don't waste bytes writing level 1 elements
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 19 Apr 2019 23:41:08 +0000 (01:41 +0200)
committerJames Almer <jamrial@gmail.com>
Wed, 8 May 2019 16:02:30 +0000 (13:02 -0300)
commit0b61ddb5766c8d5219150371db0649ff0cec730a
tree0aeaf8b807197e14a0cc2a0fa97d0655e29cb79b
parent08f5d972994ef7160767d1bd99ef59b177db3199
avformat/matroskaenc: Don't waste bytes writing level 1 elements

Up until now, the length field of most level 1 elements has been written
using eight bytes, although it is known in advance how much space the
content of said elements will take up so that it would be possible to
determine the minimal amount of bytes for the length field. This
commit changes this.

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