diff mbox series

[FFmpeg-devel,3/6] avformat/rtsp: move SDP_MAX_SIZE macro definition to header file

Message ID 1604497047-30429-3-git-send-email-lance.lmwang@gmail.com
State Accepted
Headers show
Series [FFmpeg-devel,1/6] avformat/rtsp: 16384 -> SDP_MAX_SIZE | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished

Commit Message

Lance Wang Nov. 4, 2020, 1:37 p.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavformat/rtsp.c    | 1 -
 libavformat/rtsp.h    | 1 +
 libavformat/rtspenc.c | 1 -
 3 files changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 1b876c9..51a360f 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
 
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h
index 2b37f5b..251ed86 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
diff --git a/libavformat/rtspenc.c b/libavformat/rtspenc.c
index 97e3ef6..d505444 100644
--- a/libavformat/rtspenc.c
+++ b/libavformat/rtspenc.c
@@ -34,7 +34,6 @@ 
 #include "libavutil/time.h"
 #include "url.h"
 
-#define SDP_MAX_SIZE 16384
 
 static const AVClass rtsp_muxer_class = {
     .class_name = "RTSP muxer",