[FFmpeg-cvslog] libavcodec: use avpriv_open()

Rémi Denis-Courmont git at videolan.org
Thu Aug 8 11:46:54 CEST 2013


ffmpeg | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug  6 21:19:26 2013 +0300| [fee9db1fdf921295233e94cbe2769f9cd722206d] | committer: Anton Khirnov

libavcodec: use avpriv_open()

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fee9db1fdf921295233e94cbe2769f9cd722206d
---

 libavcodec/libxvid_rc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/libxvid_rc.c b/libavcodec/libxvid_rc.c
index 9084d33..7f4a89d 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);



More information about the ffmpeg-cvslog mailing list