Revision 66e5b1df libavformat/bfi.c

View differences:

libavformat/bfi.c
109 109
    BFIContext *bfi = s->priv_data;
110 110
    AVIOContext *pb = s->pb;
111 111
    int ret, audio_offset, video_offset, chunk_size, audio_size = 0;
112
    if (bfi->nframes == 0 || url_feof(pb)) {
112
    if (bfi->nframes == 0 || pb->eof_reached) {
113 113
        return AVERROR(EIO);
114 114
    }
115 115

  
......
117 117
    if (!bfi->avflag) {
118 118
        uint32_t state = 0;
119 119
        while(state != MKTAG('S','A','V','I')){
120
            if (url_feof(pb))
120
            if (pb->eof_reached)
121 121
                return AVERROR(EIO);
122 122
            state = 256*state + avio_r8(pb);
123 123
        }

Also available in: Unified diff