# HG changeset patch # User lu_zero # Date 1256397501 0 # Node ID 936a03bbd7573d4c70540f6c2f1eddb3b2a6a574 # Parent 1ab113d6c45b3d5762199bfa2efc05eb3e8afb37 Suppress ?params in the rtsp uri Right now rtsp demuxer receives it's ffmpeg specific params encoded in the url That made the server receiving requests with the url ending with "?udp", "?multicast" and "?tcp". That may or may not cause problems to servers with overly strict or overly simple uri parsers Patch from Armand Bendanan (name.surnameATfreeDOTfr) diff -r 1ab113d6c45b -r 936a03bbd757 rtsp.c --- a/rtsp.c Sat Oct 24 15:10:58 2009 +0000 +++ b/rtsp.c Sat Oct 24 15:18:21 2009 +0000 @@ -1215,6 +1215,11 @@ else if (strcmp(option, "tcp") == 0) lower_transport_mask = (1<< RTSP_LOWER_TRANSPORT_TCP); } + // Suppress the options in the filename + if (option_list = strchr(s->filename, '?')) { + *option_list = 0; + dprintf(NULL, "### rtsp_read_header: suppr options:%s\n", s->filename); + } } if (!lower_transport_mask)