Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(758)

Unified Diff: webrtc/modules/audio_coding/neteq/tools/neteq_replacement_input.cc

Issue 2809153002: Change from WebRtcRTPHeader to RTPHeader in NetEq tests and tools (Closed)
Patch Set: Fixing neteq_rtp_fuzzer Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/neteq/tools/neteq_replacement_input.cc
diff --git a/webrtc/modules/audio_coding/neteq/tools/neteq_replacement_input.cc b/webrtc/modules/audio_coding/neteq/tools/neteq_replacement_input.cc
index dd1064962530974a9c9e7c76732b60da130979d8..9b550cbb2bf015ae58510fe59e52488cb2068f7d 100644
--- a/webrtc/modules/audio_coding/neteq/tools/neteq_replacement_input.cc
+++ b/webrtc/modules/audio_coding/neteq/tools/neteq_replacement_input.cc
@@ -70,12 +70,12 @@ void NetEqReplacementInput::ReplacePacket() {
RTC_DCHECK(packet_);
- RTC_CHECK_EQ(forbidden_types_.count(packet_->header.header.payloadType), 0)
- << "Payload type " << static_cast<int>(packet_->header.header.payloadType)
+ RTC_CHECK_EQ(forbidden_types_.count(packet_->header.payloadType), 0)
+ << "Payload type " << static_cast<int>(packet_->header.payloadType)
<< " is forbidden.";
// Check if this packet is comfort noise.
- if (comfort_noise_types_.count(packet_->header.header.payloadType) != 0) {
+ if (comfort_noise_types_.count(packet_->header.payloadType) != 0) {
// If CNG, simply insert a zero-energy one-byte payload.
uint8_t cng_payload[1] = {127}; // Max attenuation of CNG.
packet_->payload.SetData(cng_payload);
@@ -86,17 +86,17 @@ void NetEqReplacementInput::ReplacePacket() {
RTC_DCHECK(next_hdr);
uint8_t payload[12];
uint32_t input_frame_size_timestamps = last_frame_size_timestamps_;
- if (next_hdr->sequenceNumber == packet_->header.header.sequenceNumber + 1) {
+ if (next_hdr->sequenceNumber == packet_->header.sequenceNumber + 1) {
// Packets are in order.
input_frame_size_timestamps =
- next_hdr->timestamp - packet_->header.header.timestamp;
+ next_hdr->timestamp - packet_->header.timestamp;
last_frame_size_timestamps_ = input_frame_size_timestamps;
}
- FakeDecodeFromFile::PrepareEncoded(packet_->header.header.timestamp,
+ FakeDecodeFromFile::PrepareEncoded(packet_->header.timestamp,
input_frame_size_timestamps,
packet_->payload.size(), payload);
packet_->payload.SetData(payload);
- packet_->header.header.payloadType = replacement_payload_type_;
+ packet_->header.payloadType = replacement_payload_type_;
return;
}

Powered by Google App Engine
This is Rietveld 408576698