Skip to content

Commit 21a7a7c

Browse files
authored
[Cherry-pick for 0.18] [FBcode -> GH] Fix fetch_png_exif_orientation #8345 (#8356)
1 parent f22b01f commit 21a7a7c

File tree

1 file changed

+1
-0
lines changed
  • torchvision/csrc/io/image/cpu

1 file changed

+1
-0
lines changed

torchvision/csrc/io/image/cpu/exif.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ inline int fetch_png_exif_orientation(png_structp png_ptr, png_infop info_ptr) {
215215
if (exif && num_exif > 0) {
216216
return fetch_exif_orientation(exif, num_exif);
217217
}
218+
return -1;
218219
}
219220
#else // #if PNG_FOUND && defined(PNG_eXIf_SUPPORTED)
220221
inline int fetch_png_exif_orientation(png_structp png_ptr, png_infop info_ptr) {

0 commit comments

Comments
 (0)