aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2010-01-13 15:55:42 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-01-13 15:55:42 +0000
commit9d50d3962905b3938e184932f4451e807c0f43fb (patch)
tree0a33c92780c161a1f5ec7a11b909929c6124ec10
parent094a63f1f6ac6db79e72a10e3bbcff71185e85b9 (diff)
downloadffmpeg-9d50d3962905b3938e184932f4451e807c0f43fb.tar.gz
Fix issue1658 (trailing space in rtpmap descriptor).
Originally committed as revision 21187 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/rtsp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 27a63a0f64..92416ed3cd 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -102,8 +102,11 @@ static int sdp_parse_rtpmap(AVFormatContext *s,
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;