summaryrefslogtreecommitdiff
path: root/libavcodec/libxvid.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 /libavcodec/libxvid.c
parentb4f59beeb4c2171879d0d7607a4a7d6165f07791 (diff)
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 'libavcodec/libxvid.c')
-rw-r--r--libavcodec/libxvid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libxvid.c b/libavcodec/libxvid.c
index 6fd4e162c1..76e725e883 100644
--- a/libavcodec/libxvid.c
+++ b/libavcodec/libxvid.c
@@ -541,7 +541,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
rc2pass2.version = XVID_VERSION;
rc2pass2.bitrate = avctx->bit_rate;
- fd = av_tempfile("xvidff.", &x->twopassfile, 0, avctx);
+ fd = avpriv_tempfile("xvidff.", &x->twopassfile, 0, avctx);
if (fd < 0) {
av_log(avctx, AV_LOG_ERROR, "Xvid: Cannot write 2-pass pipe\n");
return fd;