1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-04-08 16:54:03 +02:00

Fix issue1658 (trailing space in rtpmap descriptor).

Originally committed as revision 21187 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ronald S. Bultje 2010-01-13 15:55:42 +00:00
parent 094a63f1f6
commit 9d50d39629

View File

@ -102,7 +102,10 @@ static int sdp_parse_rtpmap(AVFormatContext *s,
const char *c_name; const char *c_name;
/* Loop into AVRtpDynamicPayloadTypes[] and AVRtpPayloadTypes[] and /* Loop into AVRtpDynamicPayloadTypes[] and AVRtpPayloadTypes[] and
* see if we can handle this kind of payload. */ * 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); get_word_sep(buf, sizeof(buf), "/ ", &p);
if (payload_type >= RTP_PT_PRIVATE) { if (payload_type >= RTP_PT_PRIVATE) {
RTPDynamicProtocolHandler *handler; RTPDynamicProtocolHandler *handler;