From 602eb77975fa10b08ea283288b988b07bd383a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 23 Mar 2010 07:59:23 +0000 Subject: [PATCH] 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 --- libavformat/rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- GitLab