From 33f6bb78285f05dbdad476eaf199dae21b7b89df Mon Sep 17 00:00:00 2001 From: Limin Wang Date: Wed, 11 Nov 2020 18:26:26 +0800 Subject: avformat/rtsp: move SDP_MAX_SIZE macro definition to header file move comments for the size of SDP_MAX_SIZE here: Some SDP lines, particularly for Realmedia or ASF RTSP streams, contain long SDP lines containing complete ASF Headers (several kB) or arrays of MDPR (RM stream descriptor) headers plus "rulebooks" describing their properties. Therefore, the SDP line buffer is large. The Vorbis FMTP line can be up to 16KB - see xiph_parse_sdp_line in rtpdec_xiph.c. Signed-off-by: Limin Wang --- libavformat/rtsp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/rtsp.h') diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index 2b37f5b49f..251ed86d19 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -78,6 +78,7 @@ enum RTSPControlTransport { #define RTSP_DEFAULT_AUDIO_SAMPLERATE 44100 #define RTSP_RTP_PORT_MIN 5000 #define RTSP_RTP_PORT_MAX 65000 +#define SDP_MAX_SIZE 16384 /** * This describes a single item in the "Transport:" line of one stream as -- cgit v1.2.3