[FFmpeg-cvslog] r21187 - trunk/libavformat/rtsp.c
rbultje
subversion
Wed Jan 13 16:55:43 CET 2010
Author: rbultje
Date: Wed Jan 13 16:55:42 2010
New Revision: 21187
Log:
Fix issue1658 (trailing space in rtpmap descriptor).
Modified:
trunk/libavformat/rtsp.c
Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c Wed Jan 13 15:32:48 2010 (r21186)
+++ trunk/libavformat/rtsp.c Wed Jan 13 16:55:42 2010 (r21187)
@@ -102,8 +102,11 @@ static int sdp_parse_rtpmap(AVFormatCont
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;
More information about the ffmpeg-cvslog
mailing list