Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
cc4c2af7
Unverified
Commit
cc4c2af7
authored
May 14, 2020
by
Marc
Committed by
GitHub
May 14, 2020
Browse files
Set should_buffer to True by default in _read_from_stream (#2201)
parent
75077328
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/io/video.py
torchvision/io/video.py
+1
-1
No files found.
torchvision/io/video.py
View file @
cc4c2af7
...
@@ -106,7 +106,7 @@ def _read_from_stream(
...
@@ -106,7 +106,7 @@ def _read_from_stream(
)
)
frames
=
{}
frames
=
{}
should_buffer
=
Fals
e
should_buffer
=
Tru
e
max_buffer_size
=
5
max_buffer_size
=
5
if
stream
.
type
==
"video"
:
if
stream
.
type
==
"video"
:
# DivX-style packed B-frames can have out-of-order pts (2 frames in a single pkt)
# DivX-style packed B-frames can have out-of-order pts (2 frames in a single pkt)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment