From 51eb213d00154b8e7856c7667ea62db8b0f663d4 Mon Sep 17 00:00:00 2001 From: RĂ©mi Denis-Courmont Date: Tue, 6 Aug 2013 21:19:28 +0300 Subject: libavformat: use avpriv_open() Signed-off-by: Anton Khirnov --- libavformat/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/file.c b/libavformat/file.c index c552a9eaa5..2837e9f150 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 @@ -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; -- cgit v1.2.3