[FFmpeg-cvslog] libavformat: use avpriv_open()

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


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

libavformat: use avpriv_open()

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

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

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

diff --git a/libavformat/file.c b/libavformat/file.c
index c552a9e..2837e9f 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -20,6 +20,7 @@
  */
 
 #include "libavutil/avstring.h"
+#include "libavutil/internal.h"
 #include "libavutil/opt.h"
 #include "avformat.h"
 #include <fcntl.h>
@@ -110,7 +111,7 @@ static int file_open(URLContext *h, const char *filename, int flags)
 #ifdef O_BINARY
     access |= O_BINARY;
 #endif
-    fd = open(filename, access, 0666);
+    fd = avpriv_open(filename, access, 0666);
     if (fd == -1)
         return AVERROR(errno);
     c->fd = fd;



More information about the ffmpeg-cvslog mailing list