mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-08-12 13:23:48 +00:00
The generic code was setting the last packet duration based on the input frame while ignoring the fact the encoder may have output an initial padding amount of samples in the first (e.g. 481 for mp2, 256 for AC3, etc). Signed-off-by: James Almer <jamrial@gmail.com>
106 lines
2.1 KiB
Plaintext
106 lines
2.1 KiB
Plaintext
e0a9bc2eff3a462c6664488d9126b1f0 *tests/data/fate/matroska-encoding-delay.matroska
|
|
961246 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, S=1, Skip Samples, 10, 0x08d300e2
|
|
0, 0, 0, 40, 237628, 0xeff25579
|
|
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=1263
|
|
flags=K__
|
|
[SIDE_DATA]
|
|
side_data_type=Skip Samples
|
|
skip_samples=481
|
|
discard_padding=0
|
|
skip_reason=0
|
|
discard_reason=0
|
|
[/SIDE_DATA]
|
|
[/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=2423
|
|
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=240058
|
|
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=241233
|
|
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=242393
|
|
flags=K__
|
|
[/PACKET]
|
|
[STREAM]
|
|
codec_name=mpeg2video
|
|
[SIDE_DATA]
|
|
[/SIDE_DATA]
|
|
[/STREAM]
|
|
[STREAM]
|
|
codec_name=mp2
|
|
initial_padding=481
|
|
[/STREAM]
|