1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00
FFmpeg/tests
Andreas Rheinhardt bd7dea3f4f avformat/matroskaenc: Don't waste bytes writing durations
Tags in the Matroska file format can be summarized as follows: There is
a level 1-element called Tags containing one or many Tag elements each
of which in turn contain a Targets element and one or many SimpleTags.
Each SimpleTag roughly corresponds to a single key-value pair similar to
an AVDictionaryEntry. The Targets meanwhile contains information to what
the metadata contained in the SimpleTags contained in the containing Tag
applies (i.e. to the file as a whole or to an individual track).

The Matroska muxer writes such metadata. It puts the metadata of every
stream into a Tag whose Targets makes it point to the corresponding
track. And if the output is seekable, then it also adds another Tag for
each track whose Targets corresponds to the track and where it reserves
space in a SimpleTag to write the duration at the end of the muxing
process into.

Yet there is no reason to write two Tag elements for a track and a few
bytes (typically 24 bytes per track) can be saved by adding the duration
SimpleTag to the other Tag of the same track (if it exists).

FATE has been updated because the output files changed. (Tests that
write to unseekable output (pipes) needn't be updated (no duration tag
has ever been written for them) and the same applies to tests without
further metadata.)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-04-13 08:08:42 +02:00
..
api tests/api/api-h264-test: Add AV_NOPTS_VALUE check for AVFrame.pkt_dts/pts 2019-02-12 22:28:15 +08:00
checkasm tests/checkasm: add overflow test for hevc_add_res 2020-03-27 10:57:40 +01:00
dnn dnn-layer-mathbinary-test: add unit test for subtraction 2020-04-07 11:04:40 +08:00
fate dnn-layer-mathbinary-test: add unit test for subtraction 2020-04-07 11:04:40 +08:00
filtergraphs lavfi/concat: allow to support inputs with different frame rates 2019-09-08 16:48:28 +02:00
ref avformat/matroskaenc: Don't waste bytes writing durations 2020-04-13 08:08:42 +02:00
.gitignore
audiogen.c tests/audiogen: raise channel count limit to 12 2018-07-30 10:46:10 +02:00
audiomatch.c
base64.c
copycooker.sh
extended.ffconcat
fate-run.sh fate: Don't use depreceated keepside option 2020-01-10 12:28:18 -03:00
fate-valgrind.supp
fate.sh fate: Error out more gracefully on configure failure 2018-02-26 13:30:05 +01:00
Makefile fate: Add an option for disabling the 2k/4k tests 2019-12-17 10:22:29 +02:00
md5.sh
refcmp-metadata.awk
reference.pnm
rotozoom.c
simple1.ffconcat
simple2.ffconcat
test.ffmeta
tiny_psnr.c
tiny_ssim.c
utils.c
videogen.c