mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-12 19:18:44 +02:00
d53acf452f
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>
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
129f76bb3cee967ebd067efa30c4e4f7 *tests/data/fate/matroska-vp8-alpha-remux.matroska
|
|
235025 tests/data/fate/matroska-vp8-alpha-remux.matroska
|
|
#tb 0: 1/1000
|
|
#media_type 0: video
|
|
#codec_id 0: vp8
|
|
#dimensions 0: 320x213
|
|
#sar 0: 1/1
|
|
0, 0, 0, 33, 2108, 0x59b92a34, S=2, 1900, 12
|
|
0, 32, 32, 33, 142, 0x2f2a3fed, F=0x0, S=1, 160
|
|
0, 65, 65, 33, 157, 0x17804767, F=0x0, S=1, 209
|
|
0, 99, 99, 33, 206, 0x537262ca, F=0x0, S=1, 317
|
|
0, 132, 132, 33, 259, 0x73ff74b6, F=0x0, S=1, 384
|
|
0, 165, 165, 33, 320, 0x0fcf8ce4, F=0x0, S=1, 415
|
|
0, 199, 199, 33, 377, 0x8fffb5f5, F=0x0, S=1, 475
|
|
[STREAM]
|
|
DISPOSITION:default=1
|
|
DISPOSITION:dub=0
|
|
DISPOSITION:original=0
|
|
DISPOSITION:comment=0
|
|
DISPOSITION:lyrics=0
|
|
DISPOSITION:karaoke=0
|
|
DISPOSITION:forced=0
|
|
DISPOSITION:hearing_impaired=1
|
|
DISPOSITION:visual_impaired=0
|
|
DISPOSITION:clean_effects=0
|
|
DISPOSITION:attached_pic=0
|
|
DISPOSITION:timed_thumbnails=0
|
|
DISPOSITION:captions=0
|
|
DISPOSITION:descriptions=0
|
|
DISPOSITION:metadata=0
|
|
DISPOSITION:dependent=0
|
|
DISPOSITION:still_image=0
|
|
[SIDE_DATA]
|
|
side_data_type=Stereo 3D
|
|
type=2D
|
|
inverted=0
|
|
[/SIDE_DATA]
|
|
[/STREAM]
|