summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-03-23 07:59:23 +0000
committerMartin Storsjö <martin@martin.st>2010-03-23 07:59:23 +0000
commit602eb77975fa10b08ea283288b988b07bd383a10 (patch)
tree8a9ec104a1cd3e61f3eb6b578aad6d7ab542ebdc /libavformat/rtsp.c
parent2a21adf924c6019b13f632802dadda3914a2c93f (diff)
Parse options in the RTSP URL only from the last question mark onwards
This helps if the URL (erroneously?) contains question marks within the path. Originally committed as revision 22643 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 5a751f4f4d..63103d0326 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1449,7 +1449,7 @@ redirect:
port = RTSP_DEFAULT_PORT;
/* search for options */
- option_list = strchr(path, '?');
+ option_list = strrchr(path, '?');
if (option_list) {
/* Strip out the RTSP specific options, write out the rest of
* the options back into the same string. */