avformat/rtspdec: use SDP_MAX_SIZE for sdp array

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
pull/358/head
Limin Wang 4 years ago
parent 33f6bb7828
commit 9e2872bc67
  1. 2
      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");

Loading…
Cancel
Save