Revision 45658b74 libavformat/rtpdec.c

View differences:

libavformat/rtpdec.c
471 471
    if (!st) {
472 472
        /* specific MPEG2TS demux support */
473 473
        ret = ff_mpegts_parse_packet(s->ts, pkt, buf, len);
474
        if (ret < 0)
474
        if (ret < 0) {
475
            s->prev_ret = -1;
475 476
            return -1;
477
        }
476 478
        if (ret < len) {
477 479
            s->read_buf_size = len - ret;
478 480
            memcpy(s->buf, buf + ret, s->read_buf_size);

Also available in: Unified diff