ffmpeg/tests/fate
Andreas Rheinhardt dc2f6b54ac avformat/matroskaenc: Avoid allocations for SeekHead
Up until e7ddafd5, the Matroska muxer wrote two SeekHeads: One at the
beginning referencing the main level 1 elements (i.e. not the Clusters)
and one at the end, referencing the Clusters. This second SeekHead was
useless and has therefore been removed. Yet the SeekHead-related
functions and structures are still geared towards this usecase: They
are built around an allocated array of variable size that gets
reallocated every time an element is added to it although the maximum
number of Seek entries is a small compile-time constant, so that one should
rather include the array in the SeekHead structure itself; and said
structure should be contained in the MatroskaMuxContext instead of being
allocated separately.

The earlier code reserved space for a SeekHead with 10 entries, although
we currently write at most 6. Reducing said number implied that every
Matroska/Webm file will be 84 bytes smaller and required to adapt
several FATE tests; furthermore, the reserved amount overestimated the
amount needed for for the SeekHead's length field and how many bytes
need to be reserved to write a EBML Void element, bringing the total
reduction to 89 bytes.

This also fixes a potential segfault: If !mkv->is_live and if the
AVIOContext is initially unseekable when writing the header, the
SeekHead is already written when writing the header and this used to
free the SeekHead-related structures that have been allocated. But if
the AVIOContext happens to be seekable when writing the trailer, it will
be attempted to write the SeekHead again which will lead to segfaults
because the corresponding structures have already been freed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-03-26 03:19:56 +01:00
..
aac.mak
ac3.mak
acodec.mak
adpcm.mak fate/adpcm: add adpcm_ima_alp tests 2020-03-10 20:22:32 +01:00
alac.mak
als.mak fate/als: Add test for conformance file with 512 channels. 2019-08-24 09:33:44 +02:00
amrnb.mak
amrwb.mak
api.mak
apng.mak
atrac.mak
audio.mak
bmp.mak
build.mak
canopus.mak
cbs.mak fate/cbs: use the rawvideo muxer for AV1 tests 2019-12-13 10:58:10 -03:00
cdxl.mak
checkasm.mak checkasm/vf_eq: add test for vf_eq 2019-09-26 08:10:31 +08:00
concatdec.mak
cover-art.mak
dca.mak
demux.mak fate/demux: add an AV1 Annex B test 2019-11-29 18:58:42 -03:00
dfa.mak
dnn.mak FATE/dnn: add unit test for layer maximum 2019-09-20 10:57:23 -03:00
dnxhd.mak
dpcm.mak
ea.mak
exif.mak
ffmpeg.mak fate/ffmpeg: add test for time limited sub2video instance 2020-03-16 19:35:17 +02:00
ffprobe.mak ffprobe: Fix fate tests for ffprobe in cases where TARGET_PATH differs from the current path 2019-12-18 15:15:12 +02:00
fft.mak
fifo-muxer.mak
filter-audio.mak fate: Use a oneoff test for the tremolo filter 2019-12-11 22:20:00 +02:00
filter-video.mak Revert "fate/filter-video: add two tests for dnn_processing with frame format rgb24 and grayf32" 2020-01-29 01:15:56 +01:00
fits.mak
flac.mak
flvenc.mak
gapless.mak fate: Fix use of target_path/target_samples 2019-12-12 11:28:21 +02:00
gif.mak fate: add accurate_rnd+bitexact sws_flags for fate-gifenc 2019-08-17 17:33:16 +02:00
h264.mak
hap.mak
hevc.mak FATE/hevc.mak: cosmetic for fate-hevc-paired-fields 2019-12-17 14:20:48 -03:00
hlsenc.mak FATE: add hls single file mode test case 2019-08-01 19:25:29 +08:00
hw.mak
id3v2.mak
image.mak
indeo.mak
lavf-audio.mak
lavf-container.mak fate/lavf-container: add an AV1 in Matroska muxing test 2020-01-26 12:41:32 -03:00
lavf-image.mak
lavf-image2pipe.mak
lavf-video.mak tests/fate/lavf-video.mak: fix fate-lavf-gif dependencies 2020-01-30 20:30:36 +01:00
libavcodec.mak test/fate: Add missing exe suffix to h265_levels test. 2020-01-28 00:02:01 +01:00
libavdevice.mak
libavformat.mak
libavresample.mak
libavutil.mak
libswresample.mak
libswscale.mak
lossless-audio.mak
lossless-video.mak
matroska.mak avformat/matroskaenc: Avoid allocations for SeekHead 2020-03-26 03:19:56 +01:00
microsoft.mak
monkeysaudio.mak
mov.mak fate: Fix use of target_path/target_samples 2019-12-12 11:28:21 +02:00
mp3.mak
mpc.mak
mpeg4.mak
mpegps.mak fate: Fix dependencies to sample files to use local paths 2019-12-12 11:27:55 +02:00
mpegts.mak
mxf.mak fate: Fix dependencies to sample files to use local paths 2019-12-12 11:27:55 +02:00
opus.mak
pcm.mak
pixfmt.mak
pixlet.mak
probe.mak
prores.mak
qt.mak
qtrle.mak
real.mak
screen.mak
seek.mak fate: Add an option for disabling the 2k/4k tests 2019-12-17 10:22:29 +02:00
segment.mak
source-check.sh
source.mak
speedhq.mak
subtitles.mak
utvideo.mak
vcodec.mak fate: Add an option for disabling the 2k/4k tests 2019-12-17 10:22:29 +02:00
video.mak fate: add a case for ticket #3229 2019-08-13 10:46:20 +08:00
voice.mak
vorbis.mak
vpx.mak avformat/webmdashenc: Don't use custom option for bitexactness 2020-03-25 23:26:29 +01:00
vqf.mak
wavpack.mak avformat/matroskaenc: Avoid allocations for SeekHead 2020-03-26 03:19:56 +01:00
wma.mak
xvid.mak