changeset 5529:0a67dbb939a0 libavformat

Fix issue1658 (trailing space in rtpmap descriptor).
author rbultje
date Wed, 13 Jan 2010 15:55:42 +0000
parents 9cc93fd4bb72
children f9d233143854
files rtsp.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Wed Jan 13 14:32:48 2010 +0000
+++ b/rtsp.c	Wed Jan 13 15:55:42 2010 +0000
@@ -102,8 +102,11 @@
     const char *c_name;
 
     /* Loop into AVRtpDynamicPayloadTypes[] and AVRtpPayloadTypes[] and
-     * see if we can handle this kind of payload. */
-    get_word_sep(buf, sizeof(buf), "/", &p);
+     * see if we can handle this kind of payload.
+     * The space should normally not be there but some Real streams or
+     * particular servers ("RealServer Version 6.1.3.970", see issue 1658)
+     * have a trailing space. */
+    get_word_sep(buf, sizeof(buf), "/ ", &p);
     if (payload_type >= RTP_PT_PRIVATE) {
         RTPDynamicProtocolHandler *handler;
         for (handler = RTPFirstDynamicPayloadHandler;