[FFmpeg-cvslog] cmdutils&ffmpeg: use av_fopen_utf8() for passlogfile

Michael Niedermayer git at videolan.org
Thu Nov 21 18:41:31 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov  1 01:15:13 2013 +0100| [d7ac887cd62814394b4e1617154f6d3c3bffa7a3] | committer: Michael Niedermayer

cmdutils&ffmpeg: use av_fopen_utf8() for passlogfile

might fix Ticket3056

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d7ac887cd62814394b4e1617154f6d3c3bffa7a3
---

 cmdutils.c |    2 +-
 ffmpeg.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmdutils.c b/cmdutils.c
index cc24b17..cbf660f 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -1825,7 +1825,7 @@ int read_yesno(void)
 int cmdutils_read_file(const char *filename, char **bufptr, size_t *size)
 {
     int ret;
-    FILE *f = fopen(filename, "rb");
+    FILE *f = av_fopen_utf8(filename, "rb");
 
     if (!f) {
         av_log(NULL, AV_LOG_ERROR, "Cannot read file '%s': %s\n", filename,
diff --git a/ffmpeg.c b/ffmpeg.c
index 5eb395f..de361ff 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2468,7 +2468,7 @@ static int transcode_init(void)
                         codec->stats_in = logbuffer;
                     }
                     if (codec->flags & CODEC_FLAG_PASS1) {
-                        f = fopen(logfilename, "wb");
+                        f = av_fopen_utf8(logfilename, "wb");
                         if (!f) {
                             av_log(NULL, AV_LOG_FATAL, "Cannot write log file '%s' for pass-1 encoding: %s\n",
                                 logfilename, strerror(errno));



More information about the ffmpeg-cvslog mailing list