--- curl-7.50.1/lib/rtsp.c	2016-08-09 15:24:28.427083800 +0200
+++ curl-7.50.1_new/lib/rtsp.c	2016-08-09 17:28:22.788373300 +0200
@@ -797,18 +797,14 @@
     }
     else {
       /* If the Session ID is not set, and we find it in a response, then
-         set it */
-
-      /* The session ID can be an alphanumeric or a 'safe' character
+       * set it
        *
-       * RFC 2326 15.1 Base Syntax:
-       * safe =  "\$" | "-" | "_" | "." | "+"
-       * */
+       * Allow any content, up to the field seperator or end of line. RFC 2326
+       * isn't 100% clear on the session ID and for example gstreamer does
+       * url-encoded session ID's not covered by the standard. 
+       */
       char *end = start;
-      while(*end &&
-            (ISALNUM(*end) || *end == '-' || *end == '_' || *end == '.' ||
-             *end == '+' ||
-             (*end == '\\' && *(end + 1) && *(end + 1) == '$' && (++end, 1))))
+      while(*end && *end != ';')
         end++;
 
       /* Copy the id substring into a new buffer */
