Revision 66e5b1df libavformat/ipmovie.c

View differences:

libavformat/ipmovie.c
225 225
        return chunk_type;
226 226

  
227 227
    /* read the next chunk, wherever the file happens to be pointing */
228
    if (url_feof(pb))
228
    if (pb->eof_reached)
229 229
        return CHUNK_EOF;
230 230
    if (avio_read(pb, chunk_preamble, CHUNK_PREAMBLE_SIZE) !=
231 231
        CHUNK_PREAMBLE_SIZE)
......
271 271
    while ((chunk_size > 0) && (chunk_type != CHUNK_BAD)) {
272 272

  
273 273
        /* read the next chunk, wherever the file happens to be pointing */
274
        if (url_feof(pb)) {
274
        if (pb->eof_reached) {
275 275
            chunk_type = CHUNK_EOF;
276 276
            break;
277 277
        }
......
532 532
    while (memcmp(signature_buffer, signature, sizeof(signature))) {
533 533
        memmove(signature_buffer, signature_buffer + 1, sizeof(signature_buffer) - 1);
534 534
        signature_buffer[sizeof(signature_buffer) - 1] = avio_r8(pb);
535
        if (url_feof(pb))
535
        if (pb->eof_reached)
536 536
            return AVERROR_EOF;
537 537
    }
538 538
    /* initialize private context members */

Also available in: Unified diff