Remove incorrect nested decode

This commit is contained in:
Austin Mroz
2026-01-28 23:41:42 -08:00
parent ae7bf48331
commit 4b37647ce1

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