Browse Source

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
tags/n0.8
Josh Allmann Martin Storsjö 15 years ago
parent
commit
186f1ec5f4
2 changed files with 10 additions and 0 deletions
  1. +5
    -0
      libavformat/rtpdec.h
  2. +5
    -0
      libavformat/rtpproto.c

+ 5
- 0
libavformat/rtpdec.h View File

@@ -72,6 +72,11 @@ void rtp_send_punch_packets(URLContext* rtp_handle);
*/
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...
typedef struct {
uint16_t max_seq; ///< highest sequence number seen


+ 5
- 0
libavformat/rtpproto.c View File

@@ -373,6 +373,11 @@ static int rtp_get_file_handle(URLContext *h)
return s->rtp_fd;
}

int rtp_get_rtcp_file_handle(URLContext *h) {
RTPContext *s = h->priv_data;
return s->rtcp_fd;
}

URLProtocol rtp_protocol = {
"rtp",
rtp_open,


Loading…
Cancel
Save