diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-11-11 18:26:26 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-11-11 18:32:56 +0800 |
commit | 33f6bb78285f05dbdad476eaf199dae21b7b89df (patch) | |
tree | d43f529e5533565b173e01aa0119e6986d0b5c2a /libavformat/rtsp.c | |
parent | 54394600169c5c91aa6de9d555a04b865165407e (diff) | |
download | ffmpeg-33f6bb78285f05dbdad476eaf199dae21b7b89df.tar.gz |
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 <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 3bc7671a3c..3675045dbc 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -53,7 +53,6 @@ /* Default timeout values for read packet in seconds */ #define READ_PACKET_TIMEOUT_S 10 -#define SDP_MAX_SIZE 16384 #define RECVBUF_SIZE 10 * RTP_MAX_PACKET_LENGTH #define DEFAULT_REORDERING_DELAY 100000 @@ -688,14 +687,6 @@ int ff_sdp_parse(AVFormatContext *s, const char *content) { const char *p; int letter, i; - /* 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. */ char buf[SDP_MAX_SIZE], *q; SDPParseState sdp_parse_state = { { 0 } }, *s1 = &sdp_parse_state; |