diff options
author | rtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-24 18:46:41 +0000 |
---|---|---|
committer | rtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-24 18:46:41 +0000 |
commit | cc44f564e83037cd7cd3491479eb4d19d602d044 (patch) | |
tree | 207bd54cece1949c7eb345590bee74a8368ad473 /stream | |
parent | 483d313ee44e513b5d2896e502219826de351255 (diff) | |
download | mpv-cc44f564e83037cd7cd3491479eb4d19d602d044.tar.bz2 mpv-cc44f564e83037cd7cd3491479eb4d19d602d044.tar.xz |
start= and end= parameters on realrtspurls may be optionally quoted with
", skip the quoting if it's there.
Fixes rtsp://rmv8.bbc.net.uk/bbc7/2300_tue.ra?start="30:00" from
bugzilla #850
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23661 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r-- | stream/realrtsp/real.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stream/realrtsp/real.c b/stream/realrtsp/real.c index 60428eeb93..da5c5924a3 100644 --- a/stream/realrtsp/real.c +++ b/stream/realrtsp/real.c @@ -404,6 +404,11 @@ int real_get_rdt_chunk(rtsp_t *rtsp_session, char **buffer, int rdt_rawdata) { static int convert_timestamp(char *str, int *sec, int *msec) { int hh, mm, ss, ms = 0; + + // Timestamp may be optionally quoted with ", skip it + // Since the url is escaped when we get here, we skip the string "%22" + if (!strncmp(str, "%22", 3)) + str += 3; if (sscanf(str, "%d:%d:%d.%d", &hh, &mm, &ss, &ms) < 3) { hh = 0; if (sscanf(str, "%d:%d.%d", &mm, &ss, &ms) < 2) { |