avformat/rtspdec: use SDP_MAX_SIZE for sdp array

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
Limin Wang 2020-11-04 19:55:48 +08:00
parent 33f6bb7828
commit 9e2872bc67
1 changed files with 1 additions and 1 deletions

View File

@ -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");