Now the listen timeout is hardcoded(10s).
How to test(30s timeout):
./ffprobe -listen_timeout 30 -protocol_whitelist rtp,udp,file -i test.sdp
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
{"rtcp_to_source","send RTCP packets to the source address of received packets",0,AV_OPT_TYPE_CONST,{.i64=RTSP_FLAG_RTCP_TO_SOURCE},0,0,DEC,"rtsp_flags"},
{"listen_timeout","set maximum timeout (in seconds) to wait for incoming connections",OFFSET(initial_timeout),AV_OPT_TYPE_INT,{.i64=READ_PACKET_TIMEOUT_S},INT_MIN,INT_MAX,DEC},
RTSP_MEDIATYPE_OPTS("allowed_media_types","set media types to accept from the server"),
{"listen_timeout","set maximum timeout (in seconds) to wait for incoming connections",OFFSET(initial_timeout),AV_OPT_TYPE_INT,{.i64=READ_PACKET_TIMEOUT_S},INT_MIN,INT_MAX,DEC},
RTSP_MEDIATYPE_OPTS("allowed_media_types","set media types to accept from the server"),
COMMON_OPTS(),
{NULL},
};
@ -1985,9 +1987,10 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,