Revision 66e5b1df libavformat/rmdec.c

View differences:

libavformat/rmdec.c
409 409
    avio_rb32(pb); /* number of headers */
410 410

  
411 411
    for(;;) {
412
        if (url_feof(pb))
412
        if (pb->eof_reached)
413 413
            return -1;
414 414
        tag = avio_rl32(pb);
415 415
        tag_size = avio_rb32(pb);
......
515 515
    AVStream *st;
516 516
    uint32_t state=0xFFFFFFFF;
517 517

  
518
    while(!url_feof(pb)){
518
    while(!pb->eof_reached){
519 519
        int len, num, i;
520 520
        *pos= avio_tell(pb) - 3;
521 521
        if(rm->remaining_len > 0){
......
848 848
                    st = s->streams[i];
849 849
            }
850 850

  
851
            if(len<0 || url_feof(s->pb))
851
            if(len<0 || s->pb->eof_reached)
852 852
                return AVERROR(EIO);
853 853

  
854 854
            res = ff_rm_parse_packet (s, s->pb, st, st->priv_data, len, pkt,

Also available in: Unified diff