Skip to content

Commit

Permalink
[Cherry-pick for 0.18] [FBcode -> GH] Fix fetch_png_exif_orientation #…
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Mar 28, 2024
1 parent f22b01f commit 21a7a7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torchvision/csrc/io/image/cpu/exif.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ inline int fetch_png_exif_orientation(png_structp png_ptr, png_infop info_ptr) {
if (exif && num_exif > 0) {
return fetch_exif_orientation(exif, num_exif);
}
return -1;
}
#else // #if PNG_FOUND && defined(PNG_eXIf_SUPPORTED)
inline int fetch_png_exif_orientation(png_structp png_ptr, png_infop info_ptr) {
Expand Down

0 comments on commit 21a7a7c

Please sign in to comment.