From: Luca Barbato Date: Fri, 28 Dec 2007 11:23:25 +0000 (+0000) Subject: Real RTSP support, from Ronald S. Bultje rsbultje gmail - part 2 x-pn-tng support X-Git-Tag: v0.5~6633 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e150211863c1cd48e1ed4cee04f32efe81f7bb78;p=platform%2Fupstream%2Flibav.git Real RTSP support, from Ronald S. Bultje rsbultje gmail - part 2 x-pn-tng support Originally committed as revision 11340 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 21a5fda..842503b 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -604,12 +604,17 @@ static void rtsp_parse_transport(RTSPHeader *reply, const char *p) "/", &p); if (*p == '/') p++; + if (!strcasecmp (transport_protocol, "rtp")) { get_word_sep(profile, sizeof(profile), "/;,", &p); lower_transport[0] = '\0'; if (*p == '/') { /* rtp/avp/ */ p++; get_word_sep(lower_transport, sizeof(lower_transport), ";,", &p); + } + } else if (!strcasecmp (transport_protocol, "x-pn-tng")) { /* x-pn-tng/ */ + get_word_sep(lower_transport, sizeof(lower_transport), "/;,", &p); + profile[0] = '\0'; } if (!strcasecmp(lower_transport, "TCP")) th->protocol = RTSP_PROTOCOL_RTP_TCP;