Mercurial > libavformat.hg
comparison rtsp.c @ 2865:51aa1054528c libavformat
Real RTSP support, from Ronald S. Bultje rsbultje gmail - part 2 x-pn-tng support
author | lu_zero |
---|---|
date | Fri, 28 Dec 2007 11:23:25 +0000 |
parents | 254eb8cf1c27 |
children | ccbca87ccd5e |
comparison
equal
deleted
inserted
replaced
2864:254eb8cf1c27 | 2865:51aa1054528c |
---|---|
602 | 602 |
603 get_word_sep(transport_protocol, sizeof(transport_protocol), | 603 get_word_sep(transport_protocol, sizeof(transport_protocol), |
604 "/", &p); | 604 "/", &p); |
605 if (*p == '/') | 605 if (*p == '/') |
606 p++; | 606 p++; |
607 if (!strcasecmp (transport_protocol, "rtp")) { | |
607 get_word_sep(profile, sizeof(profile), "/;,", &p); | 608 get_word_sep(profile, sizeof(profile), "/;,", &p); |
608 lower_transport[0] = '\0'; | 609 lower_transport[0] = '\0'; |
609 if (*p == '/') { /* rtp/avp/<protocol> */ | 610 if (*p == '/') { /* rtp/avp/<protocol> */ |
610 p++; | 611 p++; |
611 get_word_sep(lower_transport, sizeof(lower_transport), | 612 get_word_sep(lower_transport, sizeof(lower_transport), |
612 ";,", &p); | 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 if (!strcasecmp(lower_transport, "TCP")) | 619 if (!strcasecmp(lower_transport, "TCP")) |
615 th->protocol = RTSP_PROTOCOL_RTP_TCP; | 620 th->protocol = RTSP_PROTOCOL_RTP_TCP; |
616 else | 621 else |
617 th->protocol = RTSP_PROTOCOL_RTP_UDP; | 622 th->protocol = RTSP_PROTOCOL_RTP_UDP; |