]> git.sesse.net Git - ffmpeg/commitdiff
avformat/rtsp: 16384 -> SDP_MAX_SIZE
authorLimin Wang <lance.lmwang@gmail.com>
Wed, 4 Nov 2020 12:51:06 +0000 (20:51 +0800)
committerLimin Wang <lance.lmwang@gmail.com>
Wed, 11 Nov 2020 10:32:56 +0000 (18:32 +0800)
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
libavformat/rtsp.c

index 4427bd268fbfc638bc21be565e5755f6e66a8d59..3bc7671a3cfce7ce9c927d94a60f484d64c6458c 100644 (file)
@@ -696,7 +696,7 @@ int ff_sdp_parse(AVFormatContext *s, const char *content)
      *
      * The Vorbis FMTP line can be up to 16KB - see xiph_parse_sdp_line
      * in rtpdec_xiph.c. */
-    char buf[16384], *q;
+    char buf[SDP_MAX_SIZE], *q;
     SDPParseState sdp_parse_state = { { 0 } }, *s1 = &sdp_parse_state;
 
     p = content;