diff options
author | RĂ©mi Denis-Courmont <remi@remlab.net> | 2013-08-06 21:19:27 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-08-07 21:16:05 +0200 |
commit | 71bf6b41d974229a06921806c333ce98566a5d8a (patch) | |
tree | d2a93bdc83ca21fb6924355682a047b30d87cc89 /libavdevice/oss_audio.c | |
parent | fee9db1fdf921295233e94cbe2769f9cd722206d (diff) | |
download | ffmpeg-71bf6b41d974229a06921806c333ce98566a5d8a.tar.gz |
libavdevice: use avpriv_open()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavdevice/oss_audio.c')
-rw-r--r-- | libavdevice/oss_audio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavdevice/oss_audio.c b/libavdevice/oss_audio.c index e3b9d67f6b..f1cc91f725 100644 --- a/libavdevice/oss_audio.c +++ b/libavdevice/oss_audio.c @@ -34,6 +34,7 @@ #include <fcntl.h> #include <sys/ioctl.h> +#include "libavutil/internal.h" #include "libavutil/log.h" #include "libavutil/opt.h" #include "libavutil/time.h" @@ -63,9 +64,9 @@ static int audio_open(AVFormatContext *s1, int is_output, const char *audio_devi char *flip = getenv("AUDIO_FLIP_LEFT"); if (is_output) - audio_fd = open(audio_device, O_WRONLY); + audio_fd = avpriv_open(audio_device, O_WRONLY); else - audio_fd = open(audio_device, O_RDONLY); + audio_fd = avpriv_open(audio_device, O_RDONLY); if (audio_fd < 0) { av_log(s1, AV_LOG_ERROR, "%s: %s\n", audio_device, strerror(errno)); return AVERROR(EIO); |