Browse Source

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
tags/v0.5
Luca Barbato 18 years ago
parent
commit
e150211863
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavformat/rtsp.c

+ 5
- 0
libavformat/rtsp.c View File

@@ -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;


Loading…
Cancel
Save