mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-31 08:40:19 +08:00
Remove incorrect nested decode
This commit is contained in:
parent
ae7bf48331
commit
4b37647ce1
@ -126,8 +126,7 @@ class VideoFromFile(VideoInput):
|
|||||||
else container.demux(video_stream)
|
else container.demux(video_stream)
|
||||||
)
|
)
|
||||||
for packet in frame_iterator:
|
for packet in frame_iterator:
|
||||||
for _ in packet.decode():
|
frame_count += 1
|
||||||
frame_count += 1
|
|
||||||
if frame_count > 0:
|
if frame_count > 0:
|
||||||
return float(frame_count / video_stream.average_rate) - self.start_time
|
return float(frame_count / video_stream.average_rate) - self.start_time
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user