diff options
-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); |