Revision 66e5b1df libavformat/mpeg.c

View differences:

libavformat/mpeg.c
143 143
    state = *header_state;
144 144
    n = *size_ptr;
145 145
    while (n > 0) {
146
        if (url_feof(pb))
146
        if (pb->eof_reached)
147 147
            break;
148 148
        v = avio_r8(pb);
149 149
        n--;
......
253 253
        last_sync = avio_tell(s->pb);
254 254
    //printf("startcode=%x pos=0x%"PRIx64"\n", startcode, avio_tell(s->pb));
255 255
    if (startcode < 0){
256
        if(url_feof(s->pb))
256
        if(s->pb->eof_reached)
257 257
            return AVERROR_EOF;
258 258
        //FIXME we should remember header_state
259 259
        return AVERROR(EAGAIN);

Also available in: Unified diff