diff mbox series

[FFmpeg-devel] examples/hw_decode: Add binary mode to fopen() for non-POSIX systems

Message ID CAB0OVGoSPOY9_5Ki17FGVbUOEOCpTDWFqpC1UyYSQbnkZxxRRQ@mail.gmail.com
State New
Headers show
Series [FFmpeg-devel] examples/hw_decode: Add binary mode to fopen() for non-POSIX systems | expand

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Carl Eugen Hoyos May 21, 2020, 3:42 p.m. UTC
Hi!

Attached patch is supposed to fix ticket #8638.

Please comment, Carl Eugen
Subject: [PATCH] examples/hw_decode: Add binary mode to fopen() for non-POSIX
 systems.

---
 doc/examples/hw_decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/doc/examples/hw_decode.c b/doc/examples/hw_decode.c
index f3286f472d..71be6e6709 100644
--- a/doc/examples/hw_decode.c
+++ b/doc/examples/hw_decode.c
@@ -223,7 +223,7 @@  int main(int argc, char *argv[])
     }
 
     /* open the file to dump raw data */
-    output_file = fopen(argv[3], "w+");
+    output_file = fopen(argv[3], "w+b");
 
     /* actual decoding and dump the raw data */
     while (ret >= 0) {