From 9e2872bc67f74b3014794ce0a0a79bbb4e6fbcfa Mon Sep 17 00:00:00 2001 From: Limin Wang Date: Wed, 4 Nov 2020 19:55:48 +0800 Subject: [PATCH] avformat/rtspdec: use SDP_MAX_SIZE for sdp array Signed-off-by: Limin Wang --- 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");