diff -u -p -w common/src/rtp.c common-beacon/src/rtp.c
--- common/src/rtp.c 2002-04-15 17:40:05.000000000 -0500
+++ common-beacon/src/rtp.c 2005-02-11 13:20:37.000000000 -0600
@@ -180,6 +180,7 @@ typedef struct _source {
int probation;
uint32_t jitter;
uint32_t transit;
+ uint32_t init;
uint32_t magic; /* For debugging... */
} source;
@@ -603,6 +604,7 @@ create_source(struct rtp *session, uint3
s = (source *) xmalloc(sizeof(source));
memset(s, 0, sizeof(source));
s->magic = 0xc001feed;
+ s->init = 0;
s->next = session->db[h];
s->ssrc = ssrc;
if (probation) {
@@ -735,6 +737,7 @@ init_seq(source *s, uint16_t seq)
s->received = 0;
s->received_prior = 0;
s->expected_prior = 0;
+ s->init = 1;
}
static int update_seq(source *s, uint16_t seq)
@@ -2341,6 +2344,8 @@ static int format_report_blocks(rtcp_rr
if ((nblocks == 31) || (remaining_length < 24)) {
break; /* Insufficient space for more report blocks... */
}
+ if (!s->init) break;
+
if (s->sender) {
/* Much of this is taken from A.3 of draft-ietf-avt-rtp-new-01.txt */
int extended_max = s->cycles + s->max_seq;
diff -u -p -w common/src/rtp.h common-beacon/src/rtp.h
--- common/src/rtp.h 2002-04-15 17:40:05.000000000 -0500
+++ common-beacon/src/rtp.h 2005-02-11 13:22:50.000000000 -0600
@@ -41,7 +41,7 @@
#define RTP_VERSION 2
#define RTP_PACKET_HEADER_SIZE ((sizeof(char *) * 2) + sizeof(uint32_t *) + (2 * sizeof(int)))
-#define RTP_MAX_PACKET_LEN 1500
+#define RTP_MAX_PACKET_LEN 1440
#if !defined(WORDS_BIGENDIAN) && !defined(WORDS_SMALLENDIAN)
#error RTP library requires WORDS_BIGENDIAN or WORDS_SMALLENDIAN to be defined.
syntax highlighted by Code2HTML, v. 0.9.1