[FFmpeg-devel] [PATCH] rtsp.c: remove trailing spaces from rtpmap

Ronald S. Bultje rsbultje
Fri Jan 8 00:46:25 CET 2010


Hi,

issue 1658 has an interesting sample that has a trailing space in the
rtpmap (SDP).

Attached patch removes said trailing space, so that the file plays properly.

Ronald
-------------- next part --------------
Index: libavformat/rtsp.c
===================================================================
--- libavformat/rtsp.c	(revision 21072)
+++ libavformat/rtsp.c	(working copy)
@@ -103,7 +103,7 @@
 
     /* Loop into AVRtpDynamicPayloadTypes[] and AVRtpPayloadTypes[] and
      * see if we can handle this kind of payload. */
-    get_word_sep(buf, sizeof(buf), "/", &p);
+    get_word_sep(buf, sizeof(buf), "/ ", &p);
     if (payload_type >= RTP_PT_PRIVATE) {
         RTPDynamicProtocolHandler *handler;
         for (handler = RTPFirstDynamicPayloadHandler;



More information about the ffmpeg-devel mailing list