mirror of https://git.ffmpeg.org/ffmpeg.git
Handle multiple RTSP transport options properly by adding all of them into the mask
Originally committed as revision 22644 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
602eb77975
commit
7a033e08ea
|
@ -1463,11 +1463,11 @@ redirect:
|
||||||
|
|
||||||
/* handle the options */
|
/* handle the options */
|
||||||
if (!strcmp(option, "udp")) {
|
if (!strcmp(option, "udp")) {
|
||||||
lower_transport_mask = (1<< RTSP_LOWER_TRANSPORT_UDP);
|
lower_transport_mask |= (1<< RTSP_LOWER_TRANSPORT_UDP);
|
||||||
} else if (!strcmp(option, "multicast")) {
|
} else if (!strcmp(option, "multicast")) {
|
||||||
lower_transport_mask = (1<< RTSP_LOWER_TRANSPORT_UDP_MULTICAST);
|
lower_transport_mask |= (1<< RTSP_LOWER_TRANSPORT_UDP_MULTICAST);
|
||||||
} else if (!strcmp(option, "tcp")) {
|
} else if (!strcmp(option, "tcp")) {
|
||||||
lower_transport_mask = (1<< RTSP_LOWER_TRANSPORT_TCP);
|
lower_transport_mask |= (1<< RTSP_LOWER_TRANSPORT_TCP);
|
||||||
} else {
|
} else {
|
||||||
/* Write options back into the buffer, using memmove instead
|
/* Write options back into the buffer, using memmove instead
|
||||||
* of strcpy since the strings may overlap. */
|
* of strcpy since the strings may overlap. */
|
||||||
|
|
Loading…
Reference in New Issue