Skip to content

Commit d0eff66

Browse files
committed
Skip time check in fifo
1 parent 90b868f commit d0eff66

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

auto_editor/subcommands/levels.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,7 @@ def iter_audio(src, tb: Fraction, stream: int = 0) -> Iterator[float]:
106106
start_pts = None
107107

108108
for frame in container.decode(audio=stream):
109-
if frame.pts is None:
110-
continue
111-
112-
# Fifo is strict and expects the first frame's pts to be 0.
113-
if start_pts is None:
114-
start_pts = frame.pts
115-
116-
frame.pts = frame.pts - start_pts
109+
frame.pts = None # Skip check
117110
fifo.write(frame)
118111

119112
while fifo.samples >= math.ceil(exact_size):

0 commit comments

Comments
 (0)