Some RTSP streams use SDP lines longer than 1024 bytes, so the SDP line
authorRonald S. Bultje <rsbultje@gmail.com>
Mon, 1 Sep 2008 13:47:53 +0000 (13:47 +0000)
committerRonald S. Bultje <rsbultje@gmail.com>
Mon, 1 Sep 2008 13:47:53 +0000 (13:47 +0000)
buffer needs to be increased. See discussion in "Realmedia patch" thread
on mailinglist.

Originally committed as revision 15141 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtsp.c

index 57c2105..0c60b83 100644 (file)
@@ -549,7 +549,7 @@ static int sdp_parse(AVFormatContext *s, const char *content)
 {
     const char *p;
     int letter;
-    char buf[1024], *q;
+    char buf[2048], *q;
     SDPParseState sdp_parse_state, *s1 = &sdp_parse_state;
 
     memset(s1, 0, sizeof(SDPParseState));