Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/test_remux.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,12 @@ def test_remux_clear_initial_padding() -> None:
"""A segment cut from the middle of an AAC stream has no priming samples.

Matroska stores the template's initial_padding as CodecDelay, so unless it
is cleared the decoder drops the segment's first 1024 real samples.
is cleared the decoder drops the segment's first 1024 real samples. The
source is Matroska too: the MP4 demuxer only reports AAC priming as
initial_padding from libavformat 63 (FFmpeg 9) on.
"""
source = io.BytesIO()
with av.open(source, "w", format="mp4") as out:
with av.open(source, "w", format="matroska") as out:
stream = out.add_stream("aac", rate=48000, layout="mono")
for i in range(20):
frame = av.AudioFrame.from_ndarray(
Expand Down
Loading