Commit 51eb213d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Anton Khirnov

libavformat: use avpriv_open()

Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent 71bf6b41
......@@ -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;
......
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