[FFmpeg-cvslog] r24879 - trunk/libavformat/rtpdec.c

lucabe subversion
Mon Aug 23 13:53:27 CEST 2010


Author: lucabe
Date: Mon Aug 23 13:53:27 2010
New Revision: 24879

Log:
Do not use the server SSRC as client SSRC in the RTP demuxer

Modified:
   trunk/libavformat/rtpdec.c

Modified: trunk/libavformat/rtpdec.c
==============================================================================
--- trunk/libavformat/rtpdec.c	Mon Aug 23 13:52:34 2010	(r24878)
+++ trunk/libavformat/rtpdec.c	Mon Aug 23 13:53:27 2010	(r24879)
@@ -211,8 +211,9 @@ int rtp_check_and_send_back_rr(RTPDemuxC
     put_byte(pb, (RTP_VERSION << 6) + 1); /* 1 report block */
     put_byte(pb, 201);
     put_be16(pb, 7); /* length in words - 1 */
-    put_be32(pb, s->ssrc); // our own SSRC
-    put_be32(pb, s->ssrc); // XXX: should be the server's here!
+    // our own SSRC: we use the server's SSRC + 1 to avoid conflicts
+    put_be32(pb, s->ssrc + 1);
+    put_be32(pb, s->ssrc); // server SSRC
     // some placeholders we should really fill...
     // RFC 1889/p64
     extended_max= stats->cycles + stats->max_seq;



More information about the ffmpeg-cvslog mailing list