[FFmpeg-devel] [PATCH v1 2/3] libavformat/rtsp.c : Add ignore_rtcp option to ff_rtsp_options

sunml at epoint.com.cn sunml at epoint.com.cn
Sat Apr 17 19:55:27 EEST 2021


From: Minlei Sun <sunml at epoint.com.cn>

Signed-off-by: Minlei Sun <sunml at epoint.com.cn>
---
 libavformat/rtsp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 25bdf475b3..32043bfff6 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -105,6 +105,7 @@ const AVOption ff_rtsp_options[] = {
 #if FF_API_OLD_RTSP_OPTIONS
     { "user-agent", "override User-Agent header (deprecated, use user_agent)", OFFSET(user_agent), AV_OPT_TYPE_STRING, {.str = LIBAVFORMAT_IDENT}, 0, 0, DEC|AV_OPT_FLAG_DEPRECATED },
 #endif
+    { "ignore_rtcp",  "When receiving rtcp type message, it is ignored", OFFSET(ignore_rtcp), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DEC },
     { NULL },
 };
 
-- 
2.24.3 (Apple Git-128)



More information about the ffmpeg-devel mailing list