Skip to content

Commit

Permalink
Set should_buffer to True by default in _read_from_stream (#2201)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjunyent authored May 14, 2020
1 parent 7507732 commit cc4c2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchvision/io/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _read_from_stream(
)

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

0 comments on commit cc4c2af

Please sign in to comment.