From: Olle Johansson Date: Sat, 20 Feb 2010 22:25:42 +0000 (+0000) Subject: Make sure we support RTCP compound messages with zero reports X-Git-Tag: 1.4.30-rc3~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b39082c470b214857b692b062d50ead640cea698;p=thirdparty%2Fasterisk.git 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 --- 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: