Revision e1502118

View differences:

libavformat/rtsp.c
604 604
                     "/", &p);
605 605
        if (*p == '/')
606 606
            p++;
607
        if (!strcasecmp (transport_protocol, "rtp")) {
607 608
        get_word_sep(profile, sizeof(profile), "/;,", &p);
608 609
        lower_transport[0] = '\0';
609 610
        if (*p == '/') { /* rtp/avp/<protocol> */
610 611
            p++;
611 612
            get_word_sep(lower_transport, sizeof(lower_transport),
612 613
                         ";,", &p);
614
            }
615
        } else if (!strcasecmp (transport_protocol, "x-pn-tng")) { /* x-pn-tng/<protocol> */
616
            get_word_sep(lower_transport, sizeof(lower_transport), "/;,", &p);
617
            profile[0] = '\0';
613 618
        }
614 619
        if (!strcasecmp(lower_transport, "TCP"))
615 620
            th->protocol = RTSP_PROTOCOL_RTP_TCP;

Also available in: Unified diff