ffmpeg/tests/ref/lavf
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
..
aiff
al
apng
apng.png
asf
ast
au
avi
bmp
caf
dpx
dv
dv_ntsc
dv_pal
flm
flv
gbrap.fits
gbrap16be.fits
gbrp.fits
gbrp10le.dpx
gbrp12le.dpx
gbrp16be.fits
gif
gray.fits
gray.pam
gray.xwd
gray16be.fits
gray16be.pam
gray16be.png
gxf
gxf_ntsc
gxf_pal
ircam
ismv
jpg
mka avformat/matroskaenc: Don't ignore tags of chapters written late 2020-05-19 03:34:44 +02:00
mkv avformat/matroskaenc: Don't ignore tags of chapters written late 2020-05-19 03:34:44 +02:00
mkv_attachment avformat/matroskaenc: Don't ignore tags of chapters written late 2020-05-19 03:34:44 +02:00
mmf
monob.pam
monow.xwd
mov avformat/movenc: ensure we don't write the major brand as a compatible brand more than once 2019-12-21 11:57:28 -03:00
mov_rtphint avformat/movenc: ensure we don't write the major brand as a compatible brand more than once 2019-12-21 11:57:28 -03:00
mp4 avformat/movenc: ensure we don't write the major brand as a compatible brand more than once 2019-12-21 11:57:28 -03:00
mpg
mxf avformat/mxfenc: use a zero based continuity counter 2020-03-02 22:01:47 +01:00
mxf_d10
mxf_dv25
mxf_dvcpro50
mxf_opatom
mxf_opatom_audio
nut
ogg
pam
pbmpipe
pcx
peak.wav
peak_only.wav
pgm
pgmpipe
png
ppm
ppmpipe
rgb4_byte.xwd
rgb8.xwd
rgb48be.pam
rgb48be.png
rgb48le.dpx
rgb48le_10.dpx
rgb555be.xwd
rgb565be.xwd
rgba.pam
rgba.xwd
rgba64le.dpx
rm
rso
s16.voc
sgi
smjpeg
sox
sun
swf
tga
tiff
ts
tta
ul
voc
w64
wav
wtv
wv
xbm
xwd
y4m