[FFmpeg-cvslog] r24929 - in trunk/libavformat: rtpdec.h rtpproto.c

mstorsjo subversion
Wed Aug 25 19:32:59 CEST 2010


Author: mstorsjo
Date: Wed Aug 25 19:32:59 2010
New Revision: 24929

Log:
Add rtp_get_rtcp_file_handle function

Patch by Josh Allmann, joshua dot allmann at gmail

Modified:
   trunk/libavformat/rtpdec.h
   trunk/libavformat/rtpproto.c

Modified: trunk/libavformat/rtpdec.h
==============================================================================
--- trunk/libavformat/rtpdec.h	Wed Aug 25 19:23:38 2010	(r24928)
+++ trunk/libavformat/rtpdec.h	Wed Aug 25 19:32:59 2010	(r24929)
@@ -72,6 +72,11 @@ void rtp_send_punch_packets(URLContext* 
  */
 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

Modified: trunk/libavformat/rtpproto.c
==============================================================================
--- trunk/libavformat/rtpproto.c	Wed Aug 25 19:23:38 2010	(r24928)
+++ trunk/libavformat/rtpproto.c	Wed Aug 25 19:32:59 2010	(r24929)
@@ -373,6 +373,11 @@ static int rtp_get_file_handle(URLContex
     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,



More information about the ffmpeg-cvslog mailing list