1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
FFmpeg/tests/ref/lavf-fate
Andreas Rheinhardt d53acf452f avformat/matroskaenc: Don't write \0 unnecessarily
Writing the duration SimpleTag is special: It's size is
reserved in advance via an EBML Void element (if seekable)
and this reserved space is overwritten when writing the trailer;
it does not use put_ebml_string().

The string to write is created via snprintf on a buffer
of size 20; this buffer is then written via put_ebml_binary()
with a size of 20.

EBML strings need not be zero-terminated; if not, they
are implicitly terminated by the element's length field.
snprintf() always zero-terminates the buffer, i.e.
the last byte can be discarded when using an EBML string.
This patch does this.

The FATE changes are as expected: One byte saved for every
track; the only exception is the matroska-qt-mode test:
An additional byte is saved because an additional byte
could be saved from the enclosing Tags length field.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2023-08-10 23:56:35 +02:00
..
av1.mkv avformat/matroskaenc: Don't write \0 unnecessarily 2023-08-10 23:56:35 +02:00
av1.mp4 avformat/movenc: implement writing of the btrt box 2020-09-22 18:21:31 +03:00
cram.avi tests: Convert lavf container tests with samples to non-legacy test scripts 2019-03-14 14:37:44 -03:00
evc.mp4 avformat/evc: skip nalu header size bytes before parsing sps 2023-06-19 17:21:19 -03:00
h264.mp4 avformat/movenc: implement writing of the btrt box 2020-09-22 18:21:31 +03:00
latm tests: Convert lavf container tests with samples to non-legacy test scripts 2019-03-14 14:37:44 -03:00
mp3 tests: Convert lavf container tests with samples to non-legacy test scripts 2019-03-14 14:37:44 -03:00
qtrle_mace6.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
vp3.ogg tests: Convert lavf container tests with samples to non-legacy test scripts 2019-03-14 14:37:44 -03:00
vp8.ogg lavf/mux: rewrite guessing the packet duration 2020-12-10 09:50:18 +01:00