From f87b1b373a0df55080c1e6a5874f9a0a75c6fee8 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 4 Apr 2011 20:11:19 +0200 Subject: avio: AVIO_ prefixes for URL_ open flags. --- libavformat/file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavformat/file.c') diff --git a/libavformat/file.c b/libavformat/file.c index 038752a4c8..729061a4e5 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -59,9 +59,9 @@ static int file_open(URLContext *h, const char *filename, int flags) av_strstart(filename, "file:", &filename); - if (flags & URL_RDWR) { + if (flags & AVIO_RDWR) { access = O_CREAT | O_TRUNC | O_RDWR; - } else if (flags & URL_WRONLY) { + } else if (flags & AVIO_WRONLY) { access = O_CREAT | O_TRUNC | O_WRONLY; } else { access = O_RDONLY; @@ -116,7 +116,7 @@ static int pipe_open(URLContext *h, const char *filename, int flags) fd = strtol(filename, &final, 10); if((filename == final) || *final ) {/* No digits found, or something like 10ab */ - if (flags & URL_WRONLY) { + if (flags & AVIO_WRONLY) { fd = 1; } else { fd = 0; -- cgit v1.2.3