diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 317893c5d0..fcc134f06f 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -2134,7 +2134,7 @@ static int rtp_probe(AVProbeData *p) static int rtp_read_header(AVFormatContext *s) { - uint8_t recvbuf[1500]; + uint8_t recvbuf[RTP_MAX_PACKET_LENGTH]; char host[500], sdp[500]; int ret, port; URLContext* in = NULL;