summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2007-12-28 11:23:25 +0000
committerLuca Barbato <lu_zero@gentoo.org>2007-12-28 11:23:25 +0000
commite150211863c1cd48e1ed4cee04f32efe81f7bb78 (patch)
tree88ba7a18a61905f0e814db20fcf647493bab111a /libavformat
parent16ed03221445897161f58e9420fbca57f481c7c1 (diff)
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
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtsp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 21a5fda8ac..842503b620 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/<protocol> */
p++;
get_word_sep(lower_transport, sizeof(lower_transport),
";,", &p);
+ }
+ } else if (!strcasecmp (transport_protocol, "x-pn-tng")) { /* x-pn-tng/<protocol> */
+ get_word_sep(lower_transport, sizeof(lower_transport), "/;,", &p);
+ profile[0] = '\0';
}
if (!strcasecmp(lower_transport, "TCP"))
th->protocol = RTSP_PROTOCOL_RTP_TCP;