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>
99 lines
1.9 KiB
Plaintext
99 lines
1.9 KiB
Plaintext
156c5c615bee0c55e76275df8d84e505 *tests/data/fate/matroska-encoding-delay.matroska
|
|
961238 tests/data/fate/matroska-encoding-delay.matroska
|
|
#extradata 0: 22, 0x32ea0490
|
|
#tb 0: 1/1000
|
|
#media_type 0: video
|
|
#codec_id 0: mpeg2video
|
|
#dimensions 0: 720x608
|
|
#sar 0: 152/135
|
|
#tb 1: 1/1000
|
|
#media_type 1: audio
|
|
#codec_id 1: mp2
|
|
#sample_rate 1: 48000
|
|
#channel_layout_name 1: stereo
|
|
1, -10, -10, 24, 1152, 0x724077b8
|
|
0, 0, 0, 40, 237628, 0xeff25579, S=1, 40
|
|
1, 14, 14, 24, 1152, 0x80625572
|
|
1, 38, 38, 24, 1152, 0x7d7f4dce
|
|
0, 40, 40, 40, 238066, 0xb2265f41
|
|
1, 62, 62, 24, 1152, 0xa6725739
|
|
0, 80, 80, 40, 237723, 0x00d7cd24
|
|
1, 86, 86, 24, 1152, 0xc9e85398
|
|
1, 110, 110, 24, 1152, 0xda1287d3
|
|
0, 120, 120, 40, 238290, 0xbe18b18f
|
|
1, 134, 134, 24, 1152, 0x1c9a6102
|
|
[PACKET]
|
|
codec_type=audio
|
|
stream_index=1
|
|
pts=-10
|
|
pts_time=-0.010000
|
|
dts=-10
|
|
dts_time=-0.010000
|
|
duration=24
|
|
duration_time=0.024000
|
|
size=1152
|
|
pos=1255
|
|
flags=K__
|
|
[/PACKET]
|
|
[PACKET]
|
|
codec_type=video
|
|
stream_index=0
|
|
pts=0
|
|
pts_time=0.000000
|
|
dts=0
|
|
dts_time=0.000000
|
|
duration=40
|
|
duration_time=0.040000
|
|
size=237628
|
|
pos=2415
|
|
flags=K__
|
|
[/PACKET]
|
|
[PACKET]
|
|
codec_type=audio
|
|
stream_index=1
|
|
pts=14
|
|
pts_time=0.014000
|
|
dts=14
|
|
dts_time=0.014000
|
|
duration=24
|
|
duration_time=0.024000
|
|
size=1152
|
|
pos=240050
|
|
flags=K__
|
|
[/PACKET]
|
|
[PACKET]
|
|
codec_type=audio
|
|
stream_index=1
|
|
pts=38
|
|
pts_time=0.038000
|
|
dts=38
|
|
dts_time=0.038000
|
|
duration=24
|
|
duration_time=0.024000
|
|
size=1152
|
|
pos=241225
|
|
flags=K__
|
|
[/PACKET]
|
|
[PACKET]
|
|
codec_type=video
|
|
stream_index=0
|
|
pts=40
|
|
pts_time=0.040000
|
|
dts=40
|
|
dts_time=0.040000
|
|
duration=40
|
|
duration_time=0.040000
|
|
size=238066
|
|
pos=242385
|
|
flags=K__
|
|
[/PACKET]
|
|
[STREAM]
|
|
codec_name=mpeg2video
|
|
[SIDE_DATA]
|
|
[/SIDE_DATA]
|
|
[/STREAM]
|
|
[STREAM]
|
|
codec_name=mp2
|
|
initial_padding=481
|
|
[/STREAM]
|