]> git.sesse.net Git - ffmpeg/commitdiff
Add rtp_get_rtcp_file_handle function
authorJosh Allmann <joshua.allmann@gmail.com>
Wed, 25 Aug 2010 17:32:59 +0000 (17:32 +0000)
committerMartin Storsjö <martin@martin.st>
Wed, 25 Aug 2010 17:32:59 +0000 (17:32 +0000)
Patch by Josh Allmann, joshua dot allmann at gmail

Originally committed as revision 24929 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtpdec.h
libavformat/rtpproto.c

index 5389bcc27aef47b82f891cb77da94fee5c489880..8548459d85a08672b07cf2e07faa93f26a0408be 100644 (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
index 289a253f9e10391f857b756a0c2426101ccaeacf..ef4602dfeba5ac1c42c28733bbc2b5072c4344c5 100644 (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,