aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-08 11:47:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-08 11:47:12 +0200
commit756f865e3b66ba7e9b458cc00ccd386a3361978d (patch)
treeee3a10decc153f9bdca5485cc897a871c97f897b
parent95fa1fe437c7dfe7b9a01685d3e9e9f3525f0bdc (diff)
parent51eb213d00154b8e7856c7667ea62db8b0f663d4 (diff)
downloadffmpeg-756f865e3b66ba7e9b458cc00ccd386a3361978d.tar.gz
Merge commit '51eb213d00154b8e7856c7667ea62db8b0f663d4'
* commit '51eb213d00154b8e7856c7667ea62db8b0f663d4': libavformat: use avpriv_open() Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/file.c b/libavformat/file.c
index 946f058903..2defc75e5f 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>
@@ -150,7 +151,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;