mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-18 03:19:31 +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>
71 lines
3.6 KiB
Plaintext
71 lines
3.6 KiB
Plaintext
4ca0bdb5636523c3e43b9dbf692ae21c *tests/data/fate/matroska-move-cues-to-front.matroska
|
|
23210293 tests/data/fate/matroska-move-cues-to-front.matroska
|
|
#tb 0: 1/1000
|
|
#media_type 0: audio
|
|
#codec_id 0: pcm_s24be
|
|
#sample_rate 0: 192000
|
|
#channel_layout_name 0: stereo
|
|
#tb 1: 1/1000
|
|
#media_type 1: audio
|
|
#codec_id 1: pcm_s24le
|
|
#sample_rate 1: 192000
|
|
#channel_layout_name 1: stereo
|
|
0, 0, 0, 3, 4092, 0x71f10ea0
|
|
1, 0, 0, 3, 4092, 0xa6320ea0
|
|
0, 4, 4, 3, 4092, 0x51852317
|
|
1, 4, 4, 3, 4092, 0x27732317
|
|
0, 7, 7, 3, 4092, 0xc8e2693d
|
|
1, 7, 7, 3, 4092, 0x5899693d
|
|
0, 11, 11, 3, 4092, 0x8df13008
|
|
1, 11, 11, 3, 4092, 0x6fa63008
|
|
0, 14, 14, 3, 4092, 0xc56bdf7f
|
|
1, 14, 14, 3, 4092, 0x22b0df7f
|
|
0, 18, 18, 3, 4092, 0x4ac2c0f9
|
|
1, 18, 18, 3, 4092, 0x5512c0f9
|
|
0, 21, 21, 3, 4092, 0x11a50650
|
|
1, 21, 21, 3, 4092, 0x11b90650
|
|
0, 25, 25, 3, 4092, 0x0a3837f4
|
|
1, 25, 25, 3, 4092, 0x9cb537f4
|
|
0, 28, 28, 3, 4092, 0xff0a3ce7
|
|
1, 28, 28, 3, 4092, 0x7d1a3ce7
|
|
0, 32, 32, 3, 4092, 0x42d2c983
|
|
1, 32, 32, 3, 4092, 0x0f56c983
|
|
0, 36, 36, 3, 4092, 0x2adbf4ea
|
|
1, 36, 36, 3, 4092, 0x386bf4ea
|
|
0, 39, 39, 3, 4092, 0x86d4f0a5
|
|
1, 39, 39, 3, 4092, 0x5924f0a5
|
|
0, 43, 43, 3, 4092, 0x5f35d5f7
|
|
1, 43, 43, 3, 4092, 0x565fd5f7
|
|
0, 46, 46, 3, 4092, 0xd3f27234
|
|
1, 46, 46, 3, 4092, 0x4d197234
|
|
0, 50, 50, 3, 4092, 0xb3a97ff5
|
|
1, 50, 50, 3, 4092, 0x61e67ff5
|
|
0, 53, 53, 3, 4092, 0xce30e2ba
|
|
1, 53, 53, 3, 4092, 0xe65de2ba
|
|
0, 57, 57, 3, 4092, 0x3d482d44
|
|
1, 57, 57, 3, 4092, 0xf85b2d44
|
|
0, 60, 60, 3, 4092, 0x691d161c
|
|
1, 60, 60, 3, 4092, 0x3b01161c
|
|
0, 64, 64, 3, 4092, 0xe6b93525
|
|
1, 64, 64, 3, 4092, 0xdd4e3525
|
|
0, 67, 67, 3, 4092, 0x9ce3f785
|
|
1, 67, 67, 3, 4092, 0x8a28f785
|
|
0, 71, 71, 3, 4092, 0x688fc452
|
|
1, 71, 71, 3, 4092, 0x8c5ec452
|
|
0, 75, 75, 3, 4092, 0x400cf87e
|
|
1, 75, 75, 3, 4092, 0x1e64f87e
|
|
0, 78, 78, 3, 4092, 0x49baa923
|
|
1, 78, 78, 3, 4092, 0x68d9a923
|
|
0, 82, 82, 3, 4092, 0x4df27658
|
|
1, 82, 82, 3, 4092, 0x38d77658
|
|
0, 85, 85, 3, 4092, 0xdfebf0e7
|
|
1, 85, 85, 3, 4092, 0xab2cf0e7
|
|
0, 89, 89, 3, 4092, 0x69d2f76c
|
|
1, 89, 89, 3, 4092, 0x35b9f76c
|
|
0, 92, 92, 3, 4092, 0x877b89d3
|
|
1, 92, 92, 3, 4092, 0xcc4889d3
|
|
0, 96, 96, 3, 4092, 0x70035443
|
|
1, 96, 96, 3, 4092, 0x04825443
|
|
0, 99, 99, 3, 4092, 0x30135036
|
|
1, 99, 99, 3, 4092, 0x4fba5036
|