diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-11-15 10:45:15 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-12-05 09:00:53 +0800 |
commit | 95d12da559c04d4ad4c0d0d15ec6c908d7736baf (patch) | |
tree | 3dd3ac09d5c857f8330df71f1423fee66bffebfb /libavformat/rtsp.h | |
parent | 48235c826362d8806ca07efe016d3dc46f9a52cd (diff) | |
download | ffmpeg-95d12da559c04d4ad4c0d0d15ec6c908d7736baf.tar.gz |
avformat/rtsp: prefer to use MAX_URL_SIZE for url and command buffer
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/rtsp.h')
-rw-r--r-- | libavformat/rtsp.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index 251ed86d19..b74cdc148a 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -27,6 +27,7 @@ #include "rtpdec.h" #include "network.h" #include "httpauth.h" +#include "internal.h" #include "libavutil/log.h" #include "libavutil/opt.h" @@ -316,7 +317,7 @@ typedef struct RTSPState { /** some MS RTSP streams contain a URL in the SDP that we need to use * for all subsequent RTSP requests, rather than the input URI; in * other cases, this is a copy of AVFormatContext->filename. */ - char control_uri[2048]; + char control_uri[MAX_URL_SIZE]; /** The following are used for parsing raw mpegts in udp */ //@{ @@ -444,7 +445,7 @@ typedef struct RTSPStream { * for the selected transport. Only used for TCP. */ int interleaved_min, interleaved_max; - char control_url[1024]; /**< url for this stream (from SDP) */ + char control_url[MAX_URL_SIZE]; /**< url for this stream (from SDP) */ /** The following are used only in SDP, not RTSP */ //@{ |