[FFmpeg-cvslog] avformat/rtspdec: use SDP_MAX_SIZE for sdp array

Limin Wang git at videolan.org
Wed Nov 11 12:41:15 EET 2020


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Wed Nov  4 19:55:48 2020 +0800| [9e2872bc67f74b3014794ce0a0a79bbb4e6fbcfa] | committer: Limin Wang

avformat/rtspdec: use SDP_MAX_SIZE for sdp array

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9e2872bc67f74b3014794ce0a0a79bbb4e6fbcfa
---

 libavformat/rtspdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c
index ef084a8b2b..3abf34b940 100644
--- a/libavformat/rtspdec.c
+++ b/libavformat/rtspdec.c
@@ -172,7 +172,7 @@ static int rtsp_read_announce(AVFormatContext *s)
 {
     RTSPState *rt             = s->priv_data;
     RTSPMessageHeader request = { 0 };
-    char sdp[4096];
+    char sdp[SDP_MAX_SIZE];
     int  ret;
 
     ret = rtsp_read_request(s, &request, "ANNOUNCE");



More information about the ffmpeg-cvslog mailing list