Remove incorrect nested decode
Some checks are pending
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run

This commit is contained in:
Austin Mroz 2026-01-28 23:41:42 -08:00
parent ae7bf48331
commit 4b37647ce1
No known key found for this signature in database

View File

@ -126,8 +126,7 @@ class VideoFromFile(VideoInput):
else container.demux(video_stream)
)
for packet in frame_iterator:
for _ in packet.decode():
frame_count += 1
frame_count += 1
if frame_count > 0:
return float(frame_count / video_stream.average_rate) - self.start_time