aboutsummaryrefslogtreecommitdiffstats
path: root/doc/fftools-common-opts.texi
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-08-08 16:25:39 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-08-10 23:56:35 +0200
commitd53acf452f609b1235839ddb3d39ea377a965814 (patch)
tree3ea94f4eb2dde178967b646c1d9415ee7f9b56af /doc/fftools-common-opts.texi
parent59cb099478ee5293c7f3c00b3e2836e1f000f243 (diff)
downloadffmpeg-d53acf452f609b1235839ddb3d39ea377a965814.tar.gz
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>
Diffstat (limited to 'doc/fftools-common-opts.texi')
0 files changed, 0 insertions, 0 deletions