diff options
author | RĂ©mi Denis-Courmont <remi@remlab.net> | 2013-08-06 21:19:26 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-08-07 21:13:12 +0200 |
commit | fee9db1fdf921295233e94cbe2769f9cd722206d (patch) | |
tree | 8897a2d2aee80ecc93125ada3b570283469c10ed /libavcodec | |
parent | 880391ed2d2faf796ca3a16f63cec69767546a21 (diff) | |
download | ffmpeg-fee9db1fdf921295233e94cbe2769f9cd722206d.tar.gz |
libavcodec: use avpriv_open()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libxvid_rc.c | 3 |
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); |