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
oldabi
Josh Allmann 15 years ago committed by Martin Storsjö
parent 4574b815cc
commit 186f1ec5f4
  1. 5
      libavformat/rtpdec.h
  2. 5
      libavformat/rtpproto.c

@ -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…
Cancel
Save