1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-28 12:32:17 +02:00

libavformat: use avpriv_open()

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Rémi Denis-Courmont 2013-08-06 21:19:28 +03:00 committed by Anton Khirnov
parent 71bf6b41d9
commit 51eb213d00

View File

@ -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>
@ -110,7 +111,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;