Revision 648c7962 ffplay.c

View differences:

ffplay.c
2568 2568
        }
2569 2569
        ret = av_read_frame(ic, pkt);
2570 2570
        if (ret < 0) {
2571
            if (ret == AVERROR_EOF || ic->pb->eof_reached)
2571
            if (ret == AVERROR_EOF || (ic->pb && ic->pb->eof_reached))
2572 2572
                eof=1;
2573
            if (ic->pb->error)
2573
            if (ic->pb && ic->pb->error)
2574 2574
                break;
2575 2575
            SDL_Delay(100); /* wait for user event */
2576 2576
            continue;

Also available in: Unified diff