aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRĂ©mi Denis-Courmont <remi@remlab.net>2013-08-06 21:19:26 +0300
committerAnton Khirnov <anton@khirnov.net>2013-08-07 21:13:12 +0200
commitfee9db1fdf921295233e94cbe2769f9cd722206d (patch)
tree8897a2d2aee80ecc93125ada3b570283469c10ed
parent880391ed2d2faf796ca3a16f63cec69767546a21 (diff)
downloadffmpeg-fee9db1fdf921295233e94cbe2769f9cd722206d.tar.gz
libavcodec: use avpriv_open()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavcodec/libxvid_rc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/libxvid_rc.c b/libavcodec/libxvid_rc.c
index 9084d33e7a..7f4a89d25d 100644
--- a/libavcodec/libxvid_rc.c
+++ b/libavcodec/libxvid_rc.c
@@ -28,6 +28,7 @@
#endif
#include "libavutil/attributes.h"
+#include "libavutil/internal.h"
#include "avcodec.h"
#include "libxvid.h"
#include "mpegvideo.h"
@@ -54,7 +55,7 @@ int ff_tempfile(const char *prefix, char **filename) {
return -1;
}
#if !HAVE_MKSTEMP
- fd = open(*filename, O_RDWR | O_BINARY | O_CREAT, 0444);
+ fd = avpriv_open(*filename, O_RDWR | O_BINARY | O_CREAT, 0444);
#else
snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);
fd = mkstemp(*filename);