Notify jitter buffer about received FEC packets (to avoid sending NACK request for these packets).

Don't copy codec specific header for empty packets in the jitter buffer.

BUG=3135
R=pbos@webrtc.org, stefan@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/37659004

Cr-Commit-Position: refs/heads/master@{#8184}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8184 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
asapersson@webrtc.org
2015-01-28 13:58:27 +00:00
parent 22c2f0572b
commit 37c0559c1e
7 changed files with 148 additions and 4 deletions

View File

@ -10,6 +10,8 @@
#include "webrtc/test/rtcp_packet_parser.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace webrtc {
namespace test {
@ -20,6 +22,7 @@ RtcpPacketParser::~RtcpPacketParser() {}
void RtcpPacketParser::Parse(const void *data, size_t len) {
const uint8_t* packet = static_cast<const uint8_t*>(data);
RTCPUtility::RTCPParserV2 parser(packet, len, true);
EXPECT_TRUE(parser.IsValid());
for (RTCPUtility::RTCPPacketTypes type = parser.Begin();
type != RTCPUtility::kRtcpNotValidCode;
type = parser.Iterate()) {