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
95fcd83a
Unverified
Commit
95fcd83a
authored
Aug 03, 2022
by
Vasilis Vryniotis
Committed by
GitHub
Aug 03, 2022
Browse files
Fix linter (#6360)
parent
7d328c5b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
torchvision/csrc/io/decoder/video_sampler.cpp
torchvision/csrc/io/decoder/video_sampler.cpp
+14
-12
No files found.
torchvision/csrc/io/decoder/video_sampler.cpp
View file @
95fcd83a
...
...
@@ -70,10 +70,12 @@ int transformImage(
if
((
result
=
sws_scale
(
context
,
srcSlice
,
srcStride
,
0
,
inFormat
.
height
,
planes
,
lines
))
<
0
)
{
LOG
(
ERROR
)
<<
"sws_scale failed, err: "
<<
Util
::
generateErrorDesc
(
result
);
LOG
(
ERROR
)
<<
"sws_scale failed, err: "
<<
Util
::
generateErrorDesc
(
result
);
return
result
;
}
}
else
if
(
inFormat
.
width
==
outFormat
.
width
&&
}
else
if
(
inFormat
.
width
==
outFormat
.
width
&&
inFormat
.
height
==
outFormat
.
height
&&
inFormat
.
format
==
outFormat
.
format
)
{
// Copy planes without using sws_scale if sws_getContext failed.
...
...
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