summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmdutils.c2
-rw-r--r--ffmpeg.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 80917c3..2349b70 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -641,7 +641,7 @@ int read_yesno(void)
int read_file(const char *filename, char **bufptr, size_t *size)
{
- FILE *f = fopen(filename, "r");
+ FILE *f = fopen(filename, "rb");
if (!f) {
fprintf(stderr, "Cannot read file '%s': %s\n", filename, strerror(errno));
diff --git a/ffmpeg.c b/ffmpeg.c
index 5889a05..63f0e6b 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2291,7 +2291,7 @@ static int av_transcode(AVFormatContext **output_files,
pass_logfilename_prefix ? pass_logfilename_prefix : DEFAULT_PASS_LOGFILENAME_PREFIX,
i);
if (codec->flags & CODEC_FLAG_PASS1) {
- f = fopen(logfilename, "w");
+ f = fopen(logfilename, "wb");
if (!f) {
fprintf(stderr, "Cannot write log file '%s' for pass-1 encoding: %s\n", logfilename, strerror(errno));
av_exit(1);
OpenPOWER on IntegriCloud