diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-04-04 20:11:19 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-07 18:07:16 +0200 |
commit | f87b1b373a0df55080c1e6a5874f9a0a75c6fee8 (patch) | |
tree | 9b44dffc615a4832c3d67cc27a6eb13ca8960df1 /libavformat/file.c | |
parent | 3d42d4937b029b604da7d53dce16c72e8edde29c (diff) | |
download | ffmpeg-f87b1b373a0df55080c1e6a5874f9a0a75c6fee8.tar.gz |
avio: AVIO_ prefixes for URL_ open flags.
Diffstat (limited to 'libavformat/file.c')
-rw-r--r-- | libavformat/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |