Skip to content

Commit

Permalink
[FBcode -> GH] Fix fetch_png_exif_orientation (#8345)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Mar 26, 2024
1 parent f22b01f commit f2d127a
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 f2d127a

Please sign in to comment.