38
38
#define RTP_NOTS_VALUE ((uint32_t)-1)
40
40
typedef struct RTPDemuxContext RTPDemuxContext;
41
RTPDemuxContext *rtp_parse_open(AVFormatContext *s1, AVStream *st, URLContext *rtpc, int payload_type, int queue_size);
42
void rtp_parse_set_dynamic_protocol(RTPDemuxContext *s, PayloadContext *ctx,
43
RTPDynamicProtocolHandler *handler);
44
int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt,
45
uint8_t **buf, int len);
46
void rtp_parse_close(RTPDemuxContext *s);
41
RTPDemuxContext *ff_rtp_parse_open(AVFormatContext *s1, AVStream *st, URLContext *rtpc, int payload_type, int queue_size);
42
void ff_rtp_parse_set_dynamic_protocol(RTPDemuxContext *s, PayloadContext *ctx,
43
RTPDynamicProtocolHandler *handler);
44
int ff_rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt,
45
uint8_t **buf, int len);
46
void ff_rtp_parse_close(RTPDemuxContext *s);
47
47
int64_t ff_rtp_queued_packet_time(RTPDemuxContext *s);
48
48
void ff_rtp_reset_packet_queue(RTPDemuxContext *s);
49
int rtp_get_local_rtp_port(URLContext *h);
50
int rtp_get_local_rtcp_port(URLContext *h);
49
int ff_rtp_get_local_rtp_port(URLContext *h);
50
int ff_rtp_get_local_rtcp_port(URLContext *h);
52
int rtp_set_remote_url(URLContext *h, const char *uri);
52
int ff_rtp_set_remote_url(URLContext *h, const char *uri);
55
55
* Send a dummy packet on both port pairs to set up the connection
62
62
* The same routine is used with RDT too, even if RDT doesn't use normal
63
63
* RTP packets otherwise.
65
void rtp_send_punch_packets(URLContext* rtp_handle);
65
void ff_rtp_send_punch_packets(URLContext* rtp_handle);
68
68
* some rtp servers assume client is dead if they don't hear from them...
69
69
* so we send a Receiver Report to the provided ByteIO context
70
70
* (we don't have access to the rtcp handle from here)
72
int rtp_check_and_send_back_rr(RTPDemuxContext *s, int count);
72
int ff_rtp_check_and_send_back_rr(RTPDemuxContext *s, int count);
75
75
* Get the file handle for the RTCP socket.
77
int rtp_get_rtcp_file_handle(URLContext *h);
77
int ff_rtp_get_rtcp_file_handle(URLContext *h);
79
79
// these statistics are used for rtcp receiver reports...
122
122
* require any custom depacketization code. */
125
int (*init)(AVFormatContext *s, int st_index, PayloadContext *priv_data); ///< Initialize dynamic protocol handler, called after the full rtpmap line is parsed
125
126
int (*parse_sdp_a_line) (AVFormatContext *s,
127
128
PayloadContext *priv_data,