ffmpeg/tests/ref
Andreas Rheinhardt 9f7e0b37ff avformat/matroskaenc: Don't waste bytes on BlockGroup length fields
This commit uses the new EbmlWriter API to write the length fields
of the BlockGroup and its descendants that are themselves Master
elements (namely BlockAdditions and BlockMore) on the least amount of
bytes.

This fixes regressions introduced when the special code for writing
general subtitles was removed. Accordingly, the binsub-mksenc and
matroska-zero-length-block FATE-tests have now been reverted back
to their old state again; the advantages of this approach are evident
with the matroska-vp8-alpha-remux test which up until now wrote
all the length fields of all BlockGroups, BlockAdditions and BlockMore
on eight bytes.

Using the EbmlWriter API also allowed to improve locality in
mkv_write_block(): E.g. both DiscardPadding as well as the
BlockAdditional side-data are now directly used to add elements
to the writer whereas the earlier code had to first check
for whether a BlockGroup should be used and then check again
(after the place where a BlockGroup would be opened if one were
used) for whether there is DiscardPadding or BlockAdditional
side-data to write.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-01-19 12:18:14 +01:00
..
acodec avformat/argo_asf: pass name through as metadata 2021-10-15 23:40:15 +10:00
fate avformat/matroskaenc: Don't waste bytes on BlockGroup length fields 2022-01-19 12:18:14 +01:00
lavf avformat/matroskaenc: Don't waste bytes on Video element length fields 2022-01-19 11:50:27 +01:00
lavf-fate avformat/matroskaenc: Don't waste bytes on Video element length fields 2022-01-19 11:50:27 +01:00
pixfmt fate/pixfmt: test xyz12le 2021-08-29 18:44:46 +02:00
seek avformat/matroskaenc: Don't waste bytes on Video element length fields 2022-01-19 11:50:27 +01:00
vsynth libswcale/input: use more accurate planer rgb16 yuv conversions 2020-10-06 17:56:52 +02:00
vsynth1 Merge commit 'f919cc7df6' 2012-05-30 01:40:54 +02:00
vsynth_lena tests: Rename vsynth2 to vsynth_lena 2014-12-02 03:02:30 +01:00