summaryrefslogtreecommitdiff
path: root/third_party/aom/test/video_source.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/aom/test/video_source.h')
-rw-r--r--third_party/aom/test/video_source.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/third_party/aom/test/video_source.h b/third_party/aom/test/video_source.h
index e986ffb373..dc39b5a801 100644
--- a/third_party/aom/test/video_source.h
+++ b/third_party/aom/test/video_source.h
@@ -71,7 +71,10 @@ static FILE *GetTempOutFile(std::string *file_name) {
}
return NULL;
#else
- return tmpfile();
+ char name_template[] = "/tmp/libaomtest.XXXXXX";
+ const int fd = mkstemp(name_template);
+ *file_name = name_template;
+ return fdopen(fd, "wb+");
#endif
}