aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/dv1394.c
diff options
context:
space:
mode:
authorRĂ©mi Denis-Courmont <remi@remlab.net>2013-08-06 21:19:27 +0300
committerAnton Khirnov <anton@khirnov.net>2013-08-07 21:16:05 +0200
commit71bf6b41d974229a06921806c333ce98566a5d8a (patch)
treed2a93bdc83ca21fb6924355682a047b30d87cc89 /libavdevice/dv1394.c
parentfee9db1fdf921295233e94cbe2769f9cd722206d (diff)
downloadffmpeg-71bf6b41d974229a06921806c333ce98566a5d8a.tar.gz
libavdevice: use avpriv_open()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavdevice/dv1394.c')
-rw-r--r--libavdevice/dv1394.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavdevice/dv1394.c b/libavdevice/dv1394.c
index ce8efa699d..d259e1a14f 100644
--- a/libavdevice/dv1394.c
+++ b/libavdevice/dv1394.c
@@ -27,6 +27,7 @@
#include <sys/ioctl.h>
#include <sys/mman.h>
+#include "libavutil/internal.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavformat/avformat.h"
@@ -88,7 +89,7 @@ static int dv1394_read_header(AVFormatContext * context)
goto failed;
/* Open and initialize DV1394 device */
- dv->fd = open(context->filename, O_RDONLY);
+ dv->fd = avpriv_open(context->filename, O_RDONLY);
if (dv->fd < 0) {
av_log(context, AV_LOG_ERROR, "Failed to open DV interface: %s\n", strerror(errno));
goto failed;