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
2c4665ff
Unverified
Commit
2c4665ff
authored
Mar 26, 2024
by
Nicolas Hug
Committed by
GitHub
Mar 26, 2024
Browse files
[FBcode -> GH] Fix fetch_png_exif_orientation (#8345)
parent
a0c79b39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
torchvision/csrc/io/image/cpu/exif.h
torchvision/csrc/io/image/cpu/exif.h
+1
-0
No files found.
torchvision/csrc/io/image/cpu/exif.h
View file @
2c4665ff
...
@@ -211,6 +211,7 @@ inline int fetch_png_exif_orientation(png_structp png_ptr, png_infop info_ptr) {
...
@@ -211,6 +211,7 @@ inline int fetch_png_exif_orientation(png_structp png_ptr, png_infop info_ptr) {
if
(
exif
&&
num_exif
>
0
)
{
if
(
exif
&&
num_exif
>
0
)
{
return
fetch_exif_orientation
(
exif
,
num_exif
);
return
fetch_exif_orientation
(
exif
,
num_exif
);
}
}
return
-
1
;
}
}
#endif // #if PNG_FOUND && defined(PNG_eXIf_SUPPORTED)
#endif // #if PNG_FOUND && defined(PNG_eXIf_SUPPORTED)
...
...
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