Skip to content

Commit 2c4665f

Browse files
authored
[FBcode -> GH] Fix fetch_png_exif_orientation (#8345)
1 parent a0c79b3 commit 2c4665f

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
@@ -211,6 +211,7 @@ inline int fetch_png_exif_orientation(png_structp png_ptr, png_infop info_ptr) {
211211
if (exif && num_exif > 0) {
212212
return fetch_exif_orientation(exif, num_exif);
213213
}
214+
return -1;
214215
}
215216
#endif // #if PNG_FOUND && defined(PNG_eXIf_SUPPORTED)
216217

0 commit comments

Comments
 (0)