Commit 756f865e authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '51eb213d'

* commit '51eb213d':
  libavformat: use avpriv_open()
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 95fa1fe4 51eb213d
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
*/ */
#include "libavutil/avstring.h" #include "libavutil/avstring.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "avformat.h" #include "avformat.h"
#include <fcntl.h> #include <fcntl.h>
...@@ -150,7 +151,7 @@ static int file_open(URLContext *h, const char *filename, int flags) ...@@ -150,7 +151,7 @@ static int file_open(URLContext *h, const char *filename, int flags)
#ifdef O_BINARY #ifdef O_BINARY
access |= O_BINARY; access |= O_BINARY;
#endif #endif
fd = open(filename, access, 0666); fd = avpriv_open(filename, access, 0666);
if (fd == -1) if (fd == -1)
return AVERROR(errno); return AVERROR(errno);
c->fd = fd; c->fd = fd;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment