summaryrefslogtreecommitdiff
path: root/libavformat/cache.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-03-09 15:28:28 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-03-12 02:08:45 +0100
commit9d4ab1380addb2a4e2863c625a63eed16009f90c (patch)
tree6ad7836220b2dba804361c98bfbc42cd8de2cb4b /libavformat/cache.c
parentb4f59beeb4c2171879d0d7607a4a7d6165f07791 (diff)
downloadffmpeg-9d4ab1380addb2a4e2863c625a63eed16009f90c.tar.gz
Use avpriv_tempfile()
Should fix xvid/cache on windows with --enable-shared May be related to Ticket 4780 Tested-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/cache.c')
-rw-r--r--libavformat/cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/cache.c b/libavformat/cache.c
index 1d26cb8e1e..25b28d585f 100644
--- a/libavformat/cache.c
+++ b/libavformat/cache.c
@@ -29,7 +29,7 @@
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
-#include "libavutil/file.h"
+#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/tree.h"
#include "avformat.h"
@@ -77,7 +77,7 @@ static int cache_open(URLContext *h, const char *arg, int flags, AVDictionary **
av_strstart(arg, "cache:", &arg);
- c->fd = av_tempfile("ffcache", &buffername, 0, h);
+ c->fd = avpriv_tempfile("ffcache", &buffername, 0, h);
if (c->fd < 0){
av_log(h, AV_LOG_ERROR, "Failed to create tempfile\n");
return c->fd;