Commit 8f6da860 authored by lu_zero's avatar lu_zero

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)



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20363 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0ddabc1f
...@@ -1215,6 +1215,11 @@ static int rtsp_read_header(AVFormatContext *s, ...@@ -1215,6 +1215,11 @@ static int rtsp_read_header(AVFormatContext *s,
else if (strcmp(option, "tcp") == 0) else if (strcmp(option, "tcp") == 0)
lower_transport_mask = (1<< RTSP_LOWER_TRANSPORT_TCP); 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) if (!lower_transport_mask)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment