Revision 66e5b1df libavformat/srtdec.c

View differences:

libavformat/srtdec.c
81 81
    do {
82 82
        ptr2 = ptr;
83 83
        ptr += ff_get_line(s->pb, ptr, sizeof(buffer)+buffer-ptr);
84
    } while (!is_eol(*ptr2) && !url_feof(s->pb) && ptr-buffer<sizeof(buffer)-1);
84
    } while (!is_eol(*ptr2) && !s->pb->eof_reached && ptr-buffer<sizeof(buffer)-1);
85 85

  
86 86
    if (buffer[0] && !(res = av_new_packet(pkt, ptr-buffer))) {
87 87
        memcpy(pkt->data, buffer, pkt->size);

Also available in: Unified diff