Skip to content
Snippets Groups Projects
Commit 7a033e08 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

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
parent 602eb779
No related branches found
No related tags found
No related merge requests found
......@@ -1463,11 +1463,11 @@ redirect:
/* handle the options */
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")) {
lower_transport_mask = (1<< RTSP_LOWER_TRANSPORT_UDP_MULTICAST);
lower_transport_mask |= (1<< RTSP_LOWER_TRANSPORT_UDP_MULTICAST);
} else if (!strcmp(option, "tcp")) {
lower_transport_mask = (1<< RTSP_LOWER_TRANSPORT_TCP);
lower_transport_mask |= (1<< RTSP_LOWER_TRANSPORT_TCP);
} else {
/* Write options back into the buffer, using memmove instead
* of strcpy since the strings may overlap. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment