Revision 66e5b1df libavformat/ffmetadec.c

View differences:

libavformat/ffmetadec.c
48 48
                buf[i++] = c;
49 49
        }
50 50
        buf[i] = 0;
51
    } while (!url_feof(s) && (buf[0] == ';' || buf[0] == '#' || buf[0] == 0));
51
    } while (!s->eof_reached && (buf[0] == ';' || buf[0] == '#' || buf[0] == 0));
52 52
}
53 53

  
54 54
static AVChapter *read_chapter(AVFormatContext *s)
......
126 126
    AVMetadata **m = &s->metadata;
127 127
    uint8_t line[1024];
128 128

  
129
    while(!url_feof(s->pb)) {
129
    while(!s->pb->eof_reached) {
130 130
        get_line(s->pb, line, sizeof(line));
131 131

  
132 132
        if (!memcmp(line, ID_STREAM, strlen(ID_STREAM))) {

Also available in: Unified diff