[FFmpeg-cvslog] r22644 - trunk/libavformat/rtsp.c

mstorsjo subversion
Tue Mar 23 09:00:37 CET 2010


Author: mstorsjo
Date: Tue Mar 23 09:00:37 2010
New Revision: 22644

Log:
Handle multiple RTSP transport options properly by adding all of them into the mask

Modified:
   trunk/libavformat/rtsp.c

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	Tue Mar 23 08:59:23 2010	(r22643)
+++ trunk/libavformat/rtsp.c	Tue Mar 23 09:00:37 2010	(r22644)
@@ -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. */



More information about the ffmpeg-cvslog mailing list