Revision 66e5b1df libavformat/mov.c

View differences:

libavformat/mov.c
259 259

  
260 260
    if (atom.size < 0)
261 261
        atom.size = INT64_MAX;
262
    while (total_size + 8 < atom.size && !url_feof(pb)) {
262
    while (total_size + 8 < atom.size && !pb->eof_reached) {
263 263
        int (*parse)(MOVContext*, AVIOContext*, MOVAtom) = NULL;
264 264
        a.size = atom.size;
265 265
        a.type=0;
......
2411 2411
        mov->found_mdat = 0;
2412 2412
        if (!url_is_streamed(s->pb) ||
2413 2413
            mov_read_default(mov, s->pb, (MOVAtom){ AV_RL32("root"), INT64_MAX }) < 0 ||
2414
            url_feof(s->pb))
2414
            s->pb->eof_reached)
2415 2415
            return AVERROR_EOF;
2416 2416
        av_dlog(s, "read fragments, offset 0x%llx\n", avio_tell(s->pb));
2417 2417
        goto retry;

Also available in: Unified diff