diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2020-06-25 00:01:36 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2020-08-25 18:54:50 +0200 |
commit | 68f637b6f94d25f45eee2e9320e0057a548b92e0 (patch) | |
tree | 07754a500f5af9719d099502fa1e247bf668b458 /doc/examples/decode_video.c | |
parent | c8ba0daf8dab2f5cbcdded37cd6383649933fbf3 (diff) |
doc/examples: Always open files as "binary", not "text".
Fixes ticket #8638.
Diffstat (limited to 'doc/examples/decode_video.c')
-rw-r--r-- | doc/examples/decode_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/decode_video.c b/doc/examples/decode_video.c index 169188a4b9..18ee90a6c0 100644 --- a/doc/examples/decode_video.c +++ b/doc/examples/decode_video.c @@ -41,7 +41,7 @@ static void pgm_save(unsigned char *buf, int wrap, int xsize, int ysize, FILE *f; int i; - f = fopen(filename,"w"); + f = fopen(filename,"wb"); fprintf(f, "P5\n%d %d\n%d\n", xsize, ysize, 255); for (i = 0; i < ysize; i++) fwrite(buf + i * wrap, 1, xsize, f); |