vision
vision copied to clipboard
Different ENODATA code on macOS
🐛 Bug
It seems macOS ENODATA code (96) is different than the Linux one (61). The Linux code is currently hard-coded in Video.cpp, which results in an (unnecessary?) error being shown when using the video decoder on macOS:
https://github.com/pytorch/vision/blob/7d831a2f9b3ebab9eb8e5c899cf70b103ad6908a/torchvision/csrc/io/video/Video.cpp#L314-L318
cc @bjuncek