Revision f6e138b4 libavformat/rtpdec.c

View differences:

libavformat/rtpdec.c
613 613
    int rv= 0;
614 614

  
615 615
    if (!buf) {
616
        /* If parsing of the previous packet actually returned 0, there's
617
         * nothing more to be parsed from that packet, but we may have
616
        /* If parsing of the previous packet actually returned 0 or an error,
617
         * there's nothing more to be parsed from that packet, but we may have
618 618
         * indicated that we can return the next enqueued packet. */
619
        if (!s->prev_ret)
619
        if (s->prev_ret <= 0)
620 620
            return rtp_parse_queued_packet(s, pkt);
621 621
        /* return the next packets, if any */
622 622
        if(s->st && s->parse_packet) {

Also available in: Unified diff