aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-06-11 22:41:18 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-06-11 22:41:18 +0200
commit4c9d1c6f9a8f166703dc0333b53f5dba8dc5b414 (patch)
treef68975576606dd224706890ab5ea557611b7e49e
parent3da860fbcfdecd4bb8b54dd9b4b252d867de7970 (diff)
downloadffmpeg-4c9d1c6f9a8f166703dc0333b53f5dba8dc5b414.tar.gz
lavu/file_open: Use current directory for temporary files also on Android.
Fixes ticket #5620.
-rw-r--r--libavutil/file_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/file_open.c b/libavutil/file_open.c
index 6e58cc16e6..34070d933b 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);