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
d98cccb0
"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "5552b60a861c8961a93a8f43c9f458feece43044"
Unverified
Commit
d98cccb0
authored
Dec 14, 2021
by
Zhiqiang Wang
Committed by
GitHub
Dec 14, 2021
Browse files
Fix typo in comments of video.cpp (#5092)
parent
9f48c627
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
torchvision/csrc/io/video/video.cpp
torchvision/csrc/io/video/video.cpp
+3
-3
No files found.
torchvision/csrc/io/video/video.cpp
View file @
d98cccb0
...
@@ -188,7 +188,7 @@ Video::Video(std::string videoPath, std::string stream, int64_t numThreads) {
...
@@ -188,7 +188,7 @@ Video::Video(std::string videoPath, std::string stream, int64_t numThreads) {
c10
::
Dict
<
std
::
string
,
std
::
vector
<
double
>>
ccMetadata
;
c10
::
Dict
<
std
::
string
,
std
::
vector
<
double
>>
ccMetadata
;
c10
::
Dict
<
std
::
string
,
std
::
vector
<
double
>>
subsMetadata
;
c10
::
Dict
<
std
::
string
,
std
::
vector
<
double
>>
subsMetadata
;
// calback and metadata defined in struct
// cal
l
back and metadata defined in struct
succeeded
=
decoder
.
init
(
params
,
std
::
move
(
callback
),
&
metadata
);
succeeded
=
decoder
.
init
(
params
,
std
::
move
(
callback
),
&
metadata
);
if
(
succeeded
)
{
if
(
succeeded
)
{
for
(
const
auto
&
header
:
metadata
)
{
for
(
const
auto
&
header
:
metadata
)
{
...
@@ -254,7 +254,7 @@ bool Video::setCurrentStream(std::string stream = "video") {
...
@@ -254,7 +254,7 @@ bool Video::setCurrentStream(std::string stream = "video") {
numThreads_
// global number of threads
numThreads_
// global number of threads
);
);
// calback and metadata defined in Video.h
// cal
l
back and metadata defined in Video.h
return
(
decoder
.
init
(
params
,
std
::
move
(
callback
),
&
metadata
));
return
(
decoder
.
init
(
params
,
std
::
move
(
callback
),
&
metadata
));
}
}
...
@@ -280,7 +280,7 @@ void Video::Seek(double ts, bool fastSeek = false) {
...
@@ -280,7 +280,7 @@ void Video::Seek(double ts, bool fastSeek = false) {
numThreads_
// global number of threads
numThreads_
// global number of threads
);
);
// calback and metadata defined in Video.h
// cal
l
back and metadata defined in Video.h
succeeded
=
decoder
.
init
(
params
,
std
::
move
(
callback
),
&
metadata
);
succeeded
=
decoder
.
init
(
params
,
std
::
move
(
callback
),
&
metadata
);
LOG
(
INFO
)
<<
"Decoder init at seek "
<<
succeeded
<<
"
\n
"
;
LOG
(
INFO
)
<<
"Decoder init at seek "
<<
succeeded
<<
"
\n
"
;
}
}
...
...
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