Skip to content

Commit cc4c2af

Browse files
authored
Set should_buffer to True by default in _read_from_stream (#2201)
1 parent 7507732 commit cc4c2af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/io/video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _read_from_stream(
106106
)
107107

108108
frames = {}
109-
should_buffer = False
109+
should_buffer = True
110110
max_buffer_size = 5
111111
if stream.type == "video":
112112
# DivX-style packed B-frames can have out-of-order pts (2 frames in a single pkt)

0 commit comments

Comments
 (0)