Revision 2078ca16 libavformat/asfdec.c

View differences:

libavformat/asfdec.c
609 609
    }
610 610

  
611 611
    if (c != 0x82) {
612
        /**
613
         * This code allows handling of -EAGAIN at packet boundaries (i.e.
614
         * if the packet sync code above triggers -EAGAIN). This does not
615
         * imply complete -EAGAIN handling support at random positions in
616
         * the stream.
617
         */
618
        if (url_ferror(pb) == AVERROR(EAGAIN))
619
            return AVERROR(EAGAIN);
612 620
        if (!url_feof(pb))
613 621
            av_log(s, AV_LOG_ERROR, "ff asf bad header %x  at:%"PRId64"\n", c, url_ftell(pb));
614 622
    }

Also available in: Unified diff