code outside of VLC and don't set _fmode to _O_BINARY.
Attach a file by drag & drop or click to upload