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
1a10a9a8
Unverified
Commit
1a10a9a8
authored
May 21, 2021
by
Bruno Korbar
Committed by
GitHub
May 21, 2021
Browse files
remove deprecated function call (#3858)
Co-authored-by:
Prabhat Roy
<
prabhatroy@fb.com
>
parent
dba5cf31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/csrc/io/decoder/stream.cpp
torchvision/csrc/io/decoder/stream.cpp
+1
-1
No files found.
torchvision/csrc/io/decoder/stream.cpp
View file @
1a10a9a8
...
...
@@ -232,7 +232,7 @@ void Stream::setFramePts(DecoderHeader* header, bool flush) {
if
(
flush
)
{
header
->
pts
=
nextPts_
;
// already in us
}
else
{
header
->
pts
=
av_
frame_
get_
best_effort_timestamp
(
frame_
)
;
header
->
pts
=
frame_
->
best_effort_timestamp
;
if
(
header
->
pts
==
AV_NOPTS_VALUE
)
{
header
->
pts
=
nextPts_
;
}
else
{
...
...
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