FFmpeg/tests
Andreas Rheinhardt 4ebfc13c33 avformat/matroskaenc: Don't ignore tags of chapters written late
The Matroska muxer writes the Chapters early when chapters were already
available when writing the header; in this case any tags pertaining to
these chapters get written, too.

Yet if no chapters had been supplied before writing the header, Chapters
can also be written when writing the trailer if any are supplied. Tags
belonging to these chapters were up until now completely ignored.

This commit changes this: Writing the tags belonging to chapters has
been moved to mkv_write_chapters(). If mkv_write_tags() has not been
called yet (i.e. when chapters are written when writing the header),
the AVIOContext for writing the ordinary Tags element is used, but not
output, as this is left to mkv_write_tags() in order to only write one
Tags element. Yet if mkv_write_tags() has already been called,
mkv_write_chapters() will output a Tags element of its own which only
contains the tags for chapters.

When chapters are available initially, the corresponding tags will now
be the first tags in the Tags element; but the ordering of tags in Tags
is irrelevant anyway.

This commit also makes chapter_id_offset local to mkv_write_chapters()
as it is used only there and not reused at all.

Potentially writing a second Tags element means that the maximum number
of SeekHead entries had to be incremented. All the changes to FATE
result from the ensuing increase in the amount of space reserved for the
SeekHead (21 bytes more).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-05-19 03:34:44 +02:00
..
api tests/api/api-h264-slice-test: remove unused bool header 2020-04-29 13:30:46 +01:00
checkasm checkasm: swscale: Fix running the hscale test on 32 bit x86 2020-05-16 08:16:12 +03:00
dnn dnn-layer-mathbinary-test: add unit test for minimum 2020-05-08 15:22:44 +08:00
fate avformat/matroskaenc: Don't ignore tags of chapters written late 2020-05-19 03:34:44 +02: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 ignore tags of chapters written late 2020-05-19 03:34:44 +02:00
.gitignore
audiogen.c tests/audiogen: raise channel count limit to 12 2018-07-30 10:46:10 +02:00
audiomatch.c tests/audiomatch: Add missing return code at the end of main() 2017-12-19 21:32:04 +01:00
base64.c
copycooker.sh
extended.ffconcat
fate-run.sh fate: Allow to test temporary files with ffprobe 2020-04-19 00:13:40 +02:00
fate-valgrind.supp
fate.sh fate: Error out more gracefully on configure failure 2018-02-26 13:30:05 +01:00
Makefile fate: move TrueHD tests to their own file 2020-04-20 13:53:42 -03:00
md5.sh
refcmp-metadata.awk fate: add tests for psnr and ssim filter 2017-09-27 15:58:49 +02:00
reference.pnm
rotozoom.c
simple1.ffconcat
simple2.ffconcat
test.ffmeta
tiny_psnr.c
tiny_ssim.c
utils.c
videogen.c