Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions torchvision/io/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ def _read_from_stream(
start_offset = int(math.floor(start_offset * (1 / stream.time_base)))
if end_offset != float("inf"):
end_offset = int(math.ceil(end_offset * (1 / stream.time_base)))
else:
warnings.warn(
"The pts_unit 'pts' gives wrong results and will be removed in a "
+ "follow-up version. Please use pts_unit 'sec'."
)
# else:
# warnings.warn(
# "The pts_unit 'pts' gives wrong results and will be removed in a "
# + "follow-up version. Please use pts_unit 'sec'."
# )

frames = {}
should_buffer = True
Expand Down