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.h | |
parent | 54394600169c5c91aa6de9d555a04b865165407e (diff) |
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.h')
-rw-r--r-- | libavformat/rtsp.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 |