# HG changeset patch # User lucabe # Date 1194257720 0 # Node ID cc693f9e80ee16f1a6d47db5489d7cd8b449ed63 # Parent 5ab595d4eb2fdb5ec776051dfb27c320e4494ecf Use a symbolic name for the payload size of an RTCP Sender Report packet diff -r 5ab595d4eb2f -r cc693f9e80ee rtp.c --- a/rtp.c Sun Nov 04 22:51:49 2007 +0000 +++ b/rtp.c Mon Nov 05 10:15:20 2007 +0000 @@ -32,6 +32,7 @@ //#define DEBUG +#define RTCP_SR_SIZE 28 /* TODO: - add RTCP statistics reporting (should be optional). @@ -983,7 +984,7 @@ /* XXX: mpeg pts hardcoded. RTCP send every 0.5 seconds */ rtcp_bytes = ((s->octet_count - s->last_octet_count) * RTCP_TX_RATIO_NUM) / RTCP_TX_RATIO_DEN; - if (s->first_packet || rtcp_bytes >= 28) { + if (s->first_packet || rtcp_bytes >= RTCP_SR_SIZE) { rtcp_send_sr(s1, av_gettime()); s->last_octet_count = s->octet_count; s->first_packet = 0;