diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 5a751f4f4dd2927789fa5dc6848a22dd52cf6607..63103d0326ec8ed0b9987e100f2e64694f620091 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. */