aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtp.c
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2007-11-05 10:15:20 +0000
committerLuca Abeni <lucabe72@email.it>2007-11-05 10:15:20 +0000
commit0aa7a2e6903d9fa9f1b39895bbf5c168dbac3fd8 (patch)
tree07e139c4ed613d5466c7603a0fa2faf1d6c306b5 /libavformat/rtp.c
parent40b67a56d1e2d740ed43c736153f2d7d8e85a0df (diff)
downloadffmpeg-0aa7a2e6903d9fa9f1b39895bbf5c168dbac3fd8.tar.gz
Use a symbolic name for the payload size of an RTCP Sender Report packet
Originally committed as revision 10929 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtp.c')
-rw-r--r--libavformat/rtp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rtp.c b/libavformat/rtp.c
index 14e9189635..3aa7eec3ae 100644
--- a/libavformat/rtp.c
+++ b/libavformat/rtp.c
@@ -32,6 +32,7 @@
//#define DEBUG
+#define RTCP_SR_SIZE 28
/* TODO: - add RTCP statistics reporting (should be optional).
@@ -983,7 +984,7 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt)
/* 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;