diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-20 22:25:42 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-20 22:25:42 +0000 |
commit | e869a146543ad042be087883c6f2bec5e26c3757 (patch) | |
tree | b9cbcd8ef4e5c353416ed7ca4c253d4a415bc0c1 /main/rtp.c | |
parent | 1fbe34f8b1f9e7b6ad55d475e1016135641d18f2 (diff) |
Make sure we support RTCP compound messages with zero reports
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@248106 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-rw-r--r-- | main/rtp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c index a124bb745..4f54b71a5 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: |