[FFmpeg-cvslog] lavu/file_open: Use current directory for temporary files also on Android.

Carl Eugen Hoyos git at videolan.org
Sat Jun 11 23:20:17 CEST 2016


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sat Jun 11 22:41:18 2016 +0200| [4c9d1c6f9a8f166703dc0333b53f5dba8dc5b414] | committer: Carl Eugen Hoyos

lavu/file_open: Use current directory for temporary files also on Android.

Fixes ticket #5620.

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

 libavutil/file_open.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/file_open.c b/libavutil/file_open.c
index 6e58cc1..34070d9 100644
--- a/libavutil/file_open.c
+++ b/libavutil/file_open.c
@@ -134,7 +134,7 @@ int avpriv_tempfile(const char *prefix, char **filename, int log_offset, void *l
 #else
     snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);
     fd = mkstemp(*filename);
-#ifdef _WIN32
+#if defined(_WIN32) || defined (__ANDROID__)
     if (fd < 0) {
         snprintf(*filename, len, "./%sXXXXXX", prefix);
         fd = mkstemp(*filename);



More information about the ffmpeg-cvslog mailing list