[vlc-commits] [Git][videolan/vlc][master] contrib: fxc2: fix binary output mode

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Jul 31 13:17:25 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
c8760892 by Steve Lhomme at 2024-07-31T03:42:24+00:00
contrib: fxc2: fix binary output mode

We need to write in binary mode all the time, or at least in binary output mode.

- - - - -


1 changed file:

- contrib/src/fxc2/0001-handle-O-option-to-write-to-a-binary-file-rather-tha.patch


Changes:

=====================================
contrib/src/fxc2/0001-handle-O-option-to-write-to-a-binary-file-rather-tha.patch
=====================================
@@ -57,7 +57,7 @@ index 205fa16..a4037af 100755
  
      FILE* f;
 -    errno_t err = fopen_s(&f, outputFile, "w");
-+    const auto openMode = outputToHeader ? "wb" : "w";
++    const auto openMode = outputToHeader ? "w" : "wb";
 +    errno_t err = fopen_s(&f, outputFile, openMode);
  
 +    if (!outputToHeader) {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c876089296108465893b49c5a21a591a80c157bd

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c876089296108465893b49c5a21a591a80c157bd
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list