vision icon indicating copy to clipboard operation
vision copied to clipboard

Different ENODATA code on macOS

Open stefanwayon opened this issue 5 years ago • 0 comments

🐛 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

stefanwayon avatar Jan 22 '21 12:01 stefanwayon