@ -65,8 +65,7 @@
# define RTSP_FLAG_OPTS(name, longname) \
{ name , longname , OFFSET ( rtsp_flags ) , AV_OPT_TYPE_FLAGS , { . i64 = 0 } , INT_MIN , INT_MAX , DEC , " rtsp_flags " } , \
{ " filter_src " , " Only receive packets from the negotiated peer IP " , 0 , AV_OPT_TYPE_CONST , { . i64 = RTSP_FLAG_FILTER_SRC } , 0 , 0 , DEC , " rtsp_flags " } , \
{ " listen " , " Wait for incoming connections " , 0 , AV_OPT_TYPE_CONST , { . i64 = RTSP_FLAG_LISTEN } , 0 , 0 , DEC , " rtsp_flags " }
{ " filter_src " , " Only receive packets from the negotiated peer IP " , 0 , AV_OPT_TYPE_CONST , { . i64 = RTSP_FLAG_FILTER_SRC } , 0 , 0 , DEC , " rtsp_flags " }
# define RTSP_MEDIATYPE_OPTS(name, longname) \
{ name , longname , OFFSET ( media_type_mask ) , AV_OPT_TYPE_FLAGS , { . i64 = ( 1 < < ( AVMEDIA_TYPE_DATA + 1 ) ) - 1 } , INT_MIN , INT_MAX , DEC , " allowed_media_types " } , \
@ -86,6 +85,7 @@ const AVOption ff_rtsp_options[] = {
{ " udp_multicast " , " UDP multicast " , 0 , AV_OPT_TYPE_CONST , { . i64 = 1 < < RTSP_LOWER_TRANSPORT_UDP_MULTICAST } , 0 , 0 , DEC , " rtsp_transport " } ,
{ " http " , " HTTP tunneling " , 0 , AV_OPT_TYPE_CONST , { . i64 = ( 1 < < RTSP_LOWER_TRANSPORT_HTTP ) } , 0 , 0 , DEC , " rtsp_transport " } ,
RTSP_FLAG_OPTS ( " rtsp_flags " , " RTSP flags " ) ,
{ " listen " , " Wait for incoming connections " , 0 , AV_OPT_TYPE_CONST , { . i64 = RTSP_FLAG_LISTEN } , 0 , 0 , DEC , " rtsp_flags " } ,
RTSP_MEDIATYPE_OPTS ( " allowed_media_types " , " Media types to accept from the server " ) ,
{ " min_port " , " Minimum local UDP port " , OFFSET ( rtp_port_min ) , AV_OPT_TYPE_INT , { . i64 = RTSP_RTP_PORT_MIN } , 0 , 65535 , DEC | ENC } ,
{ " max_port " , " Maximum local UDP port " , OFFSET ( rtp_port_max ) , AV_OPT_TYPE_INT , { . i64 = RTSP_RTP_PORT_MAX } , 0 , 65535 , DEC | ENC } ,