From f7813a5324be39d13ab536c245d15dfc602a7849 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sun, 29 Dec 2013 12:19:38 +0000 Subject: basic type mechanism working --- ffmpeg/libavdevice/dv1394.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ffmpeg/libavdevice/dv1394.c') diff --git a/ffmpeg/libavdevice/dv1394.c b/ffmpeg/libavdevice/dv1394.c index 5d94f5c..0af5ea5 100644 --- a/ffmpeg/libavdevice/dv1394.c +++ b/ffmpeg/libavdevice/dv1394.c @@ -27,6 +27,7 @@ #include #include +#include "libavutil/internal.h" #include "libavutil/log.h" #include "libavutil/opt.h" #include "avdevice.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; -- cgit v1.2.3