Revision f87b1b37 libavformat/file.c

View differences:

libavformat/file.c
59 59

  
60 60
    av_strstart(filename, "file:", &filename);
61 61

  
62
    if (flags & URL_RDWR) {
62
    if (flags & AVIO_RDWR) {
63 63
        access = O_CREAT | O_TRUNC | O_RDWR;
64
    } else if (flags & URL_WRONLY) {
64
    } else if (flags & AVIO_WRONLY) {
65 65
        access = O_CREAT | O_TRUNC | O_WRONLY;
66 66
    } else {
67 67
        access = O_RDONLY;
......
116 116

  
117 117
    fd = strtol(filename, &final, 10);
118 118
    if((filename == final) || *final ) {/* No digits found, or something like 10ab */
119
        if (flags & URL_WRONLY) {
119
        if (flags & AVIO_WRONLY) {
120 120
            fd = 1;
121 121
        } else {
122 122
            fd = 0;

Also available in: Unified diff