From b39082c470b214857b692b062d50ead640cea698 Mon Sep 17 00:00:00 2001 From: Olle Johansson Date: Sat, 20 Feb 2010 22:25:42 +0000 Subject: [PATCH] Make sure we support RTCP compound messages with zero reports git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@248106 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/rtp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/rtp.c b/main/rtp.c index a124bb745d..4f54b71a56 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -944,6 +944,10 @@ struct ast_frame *ast_rtcp_read(struct ast_rtp *rtp) } i += 2; /* Advance past header and ssrc */ + if (rc == 0 && pt == RTCP_PT_RR) { /* We're receiving a receiver report with no reports, which is ok */ + position += (length + 1); + continue; + } switch (pt) { case RTCP_PT_SR: