Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2009-10-24 19:18:21 +0400
committerLuca Barbato <lu_zero@gentoo.org>2009-10-24 19:18:21 +0400
commit7541f32edd8b761c87160bf43ef97b11acb7f720 (patch)
tree74076a091596f089acba7e4bc9f8f8d7c08122e5 /libavformat
parent224b44957b5ffd58ce37d39817bb1a503089183b (diff)
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) Originally committed as revision 20363 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtsp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 535adcd823..f92c07afde 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1215,6 +1215,11 @@ static int rtsp_read_header(AVFormatContext *s,
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)