diff options
author | Martin Storsjö <martin@martin.st> | 2010-03-23 07:59:23 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-03-23 07:59:23 +0000 |
commit | 602eb77975fa10b08ea283288b988b07bd383a10 (patch) | |
tree | 8a9ec104a1cd3e61f3eb6b578aad6d7ab542ebdc /libavformat | |
parent | 2a21adf924c6019b13f632802dadda3914a2c93f (diff) | |
download | ffmpeg-602eb77975fa10b08ea283288b988b07bd383a10.tar.gz |
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')
-rw-r--r-- | libavformat/rtsp.c | 2 |
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. */ |