forked from FFmpeg/FFmpeg
Add rtp_get_rtcp_file_handle function
Patch by Josh Allmann, joshua dot allmann at gmail Originally committed as revision 24929 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4574b815cc
commit
186f1ec5f4
2 changed files with 10 additions and 0 deletions
|
@ -72,6 +72,11 @@ void rtp_send_punch_packets(URLContext* rtp_handle);
|
||||||
*/
|
*/
|
||||||
int rtp_check_and_send_back_rr(RTPDemuxContext *s, int count);
|
int rtp_check_and_send_back_rr(RTPDemuxContext *s, int count);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the file handle for the RTCP socket.
|
||||||
|
*/
|
||||||
|
int rtp_get_rtcp_file_handle(URLContext *h);
|
||||||
|
|
||||||
// these statistics are used for rtcp receiver reports...
|
// these statistics are used for rtcp receiver reports...
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint16_t max_seq; ///< highest sequence number seen
|
uint16_t max_seq; ///< highest sequence number seen
|
||||||
|
|
|
@ -373,6 +373,11 @@ static int rtp_get_file_handle(URLContext *h)
|
||||||
return s->rtp_fd;
|
return s->rtp_fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int rtp_get_rtcp_file_handle(URLContext *h) {
|
||||||
|
RTPContext *s = h->priv_data;
|
||||||
|
return s->rtcp_fd;
|
||||||
|
}
|
||||||
|
|
||||||
URLProtocol rtp_protocol = {
|
URLProtocol rtp_protocol = {
|
||||||
"rtp",
|
"rtp",
|
||||||
rtp_open,
|
rtp_open,
|
||||||
|
|
Loading…
Add table
Reference in a new issue