mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +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>
89 lines
4.6 KiB
Plaintext
89 lines
4.6 KiB
Plaintext
a2897e3951b0054d0fa31fe51860444f *tests/data/fate/matroska-ms-mode.matroska
|
|
413103 tests/data/fate/matroska-ms-mode.matroska
|
|
#extradata 0: 40, 0x54290c93
|
|
#extradata 1: 114, 0xb6c80771
|
|
#tb 0: 1/1000
|
|
#media_type 0: video
|
|
#codec_id 0: vp5
|
|
#dimensions 0: 512x304
|
|
#sar 0: 0/1
|
|
#tb 1: 1/1000
|
|
#media_type 1: audio
|
|
#codec_id 1: speex
|
|
#sample_rate 1: 32000
|
|
#channel_layout_name 1: mono
|
|
0, 0, 0, 41, 12972, 0x6588cf8e
|
|
1, 0, 0, 0, 74, 0xd4eb274d
|
|
1, 20, 20, 0, 74, 0xef822181
|
|
1, 40, 40, 0, 74, 0x61e3239c
|
|
0, 42, 42, 41, 478, 0xeca1eeb9
|
|
1, 60, 60, 0, 74, 0x474623d5
|
|
1, 80, 80, 0, 74, 0x79a21f22
|
|
0, 83, 83, 41, 260, 0x335f8133
|
|
1, 100, 100, 0, 74, 0xb3022058
|
|
1, 120, 120, 0, 74, 0x57a32240
|
|
0, 125, 125, 41, 199, 0xf6f86142
|
|
1, 140, 140, 0, 74, 0x34892453
|
|
1, 160, 160, 0, 74, 0x55621efb
|
|
0, 167, 167, 41, 188, 0x0eeb5f55
|
|
1, 180, 180, 0, 74, 0xb92f206a
|
|
1, 200, 200, 0, 74, 0x1988222e
|
|
0, 209, 209, 41, 183, 0x921a5b3c
|
|
1, 220, 220, 0, 74, 0x033b20dc
|
|
1, 240, 240, 0, 74, 0xf8f41da4
|
|
0, 250, 250, 41, 181, 0xae765703
|
|
1, 260, 260, 0, 74, 0xfc89201f
|
|
1, 280, 280, 0, 74, 0x2b102428
|
|
0, 292, 292, 41, 181, 0xdc975d93
|
|
1, 300, 300, 0, 74, 0x2df42380
|
|
1, 320, 320, 0, 74, 0xebcf20fd
|
|
0, 334, 334, 41, 181, 0x30355b73
|
|
1, 340, 340, 0, 74, 0x3eb524f8
|
|
1, 360, 360, 0, 74, 0x1f802308
|
|
0, 375, 375, 41, 179, 0xef275e89
|
|
1, 380, 380, 0, 74, 0x218d23bd
|
|
1, 400, 400, 0, 74, 0x77f82421
|
|
0, 417, 417, 41, 181, 0xbdb35a1b
|
|
1, 420, 420, 0, 74, 0xf20023a3
|
|
1, 440, 440, 0, 74, 0x82cc1f9a
|
|
0, 459, 459, 41, 179, 0x1b245f55
|
|
1, 460, 460, 0, 74, 0x8d3222e4
|
|
1, 480, 480, 0, 74, 0x939d1e4c
|
|
1, 500, 500, 0, 74, 0x55c3232c
|
|
0, 501, 501, 41, 181, 0x30355b73
|
|
1, 520, 520, 0, 74, 0x85e02092
|
|
1, 540, 540, 0, 74, 0xb9d02059
|
|
0, 542, 542, 41, 179, 0xef275e89
|
|
1, 560, 560, 0, 74, 0xbbd8211f
|
|
1, 580, 580, 0, 74, 0xe0ca20e1
|
|
0, 584, 584, 41, 181, 0xbdb35a1b
|
|
1, 600, 600, 0, 74, 0xd4f9216b
|
|
1, 620, 620, 0, 74, 0xdea723f9
|
|
0, 626, 626, 41, 179, 0x1b245f55
|
|
1, 640, 640, 0, 74, 0xc2611fe9
|
|
1, 660, 660, 0, 74, 0x9f941f2d
|
|
0, 667, 667, 41, 181, 0x30355b73
|
|
1, 680, 680, 0, 74, 0xaf991eb9
|
|
1, 700, 700, 0, 74, 0x7e79250e
|
|
0, 709, 709, 41, 179, 0xef275e89
|
|
1, 720, 720, 0, 74, 0x5a421faa
|
|
1, 740, 740, 0, 74, 0x3b211ce0
|
|
0, 751, 751, 41, 181, 0xbdb35a1b
|
|
1, 760, 760, 0, 74, 0x4a812478
|
|
1, 780, 780, 0, 74, 0xfc1b234f
|
|
0, 792, 792, 41, 179, 0x1b245f55
|
|
1, 800, 800, 0, 74, 0x3d561db1
|
|
1, 820, 820, 0, 74, 0x6bbb2475
|
|
0, 834, 834, 41, 181, 0x30355b73
|
|
1, 840, 840, 0, 74, 0x76fe1f63
|
|
1, 860, 860, 0, 74, 0x15861cf1
|
|
0, 876, 876, 41, 179, 0xef275e89
|
|
1, 880, 880, 0, 74, 0x7dca1c6a
|
|
1, 900, 900, 0, 74, 0xad8b20aa
|
|
0, 918, 918, 41, 181, 0xbdb35a1b
|
|
1, 920, 920, 0, 74, 0x6ba01e89
|
|
1, 940, 940, 0, 74, 0x621421eb
|
|
0, 959, 959, 41, 179, 0x1b245f55
|
|
1, 960, 960, 0, 74, 0x26672424
|
|
1, 980, 980, 0, 74, 0xcb6120f4
|