22 #ifndef AVFORMAT_RDT_H 23 #define AVFORMAT_RDT_H 42 int first_stream_of_set_idx,
60 const char *challenge);
71 int stream_nr,
int rule_nr);
86 int *pset_id,
int *pseq_no,
int *pstream_id,
87 int *pis_keyframe, uint32_t *ptimestamp);
void ff_real_parse_sdp_a_line(AVFormatContext *s, int stream_index, const char *buf)
Parse a server-related SDP line.
RDTDemuxContext * ff_rdt_parse_open(AVFormatContext *ic, int first_stream_of_set_idx, void *priv_data, const RTPDynamicProtocolHandler *handler)
Allocate and init the RDT parsing context.
static void handler(vbi_event *ev, void *user_data)
void ff_rdt_calc_response_and_checksum(char response[41], char chksum[9], const char *challenge)
Calculate the response (RealChallenge2 in the RTSP header) to the challenge (RealChallenge1 in the RT...
AVFormatContext * ic
the containing (RTSP) demux context
int ff_rdt_parse_packet(RDTDemuxContext *s, AVPacket *pkt, uint8_t **buf, int len)
Parse RDT-style packet data (header + media data).
int ff_rdt_parse_header(const uint8_t *buf, int len, int *pset_id, int *pseq_no, int *pstream_id, int *pis_keyframe, uint32_t *ptimestamp)
Parse RDT-style packet header.
void ff_rdt_subscribe_rule(char *cmd, int size, int stream_nr, int rule_nr)
Add subscription information to Subscribe parameter string.
void ff_rdt_parse_close(RDTDemuxContext *s)
This structure stores compressed data.