Mercurial > libavformat.hg
changeset 5870:b17b16b532ca libavformat
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.
author | mstorsjo |
---|---|
date | Tue, 23 Mar 2010 07:59:23 +0000 |
parents | 754103ee76de |
children | 9451f2f58b14 |
files | rtsp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rtsp.c Tue Mar 23 07:55:15 2010 +0000 +++ b/rtsp.c Tue Mar 23 07:59:23 2010 +0000 @@ -1449,7 +1449,7 @@ 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. */