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

Unified Diff: webrtc/test/fuzzers/neteq_rtp_fuzzer.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
« no previous file with comments | « webrtc/modules/audio_coding/neteq/tools/rtp_generator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/fuzzers/neteq_rtp_fuzzer.cc
diff --git a/webrtc/test/fuzzers/neteq_rtp_fuzzer.cc b/webrtc/test/fuzzers/neteq_rtp_fuzzer.cc
index c0f250aeb6ac9e6f77697ac0675d44fbe51f5f88..f6271206fd1255e10aba99608bf69675f42bafc3 100644
--- a/webrtc/test/fuzzers/neteq_rtp_fuzzer.cc
+++ b/webrtc/test/fuzzers/neteq_rtp_fuzzer.cc
@@ -87,7 +87,7 @@ class FuzzRtpInput : public NetEqInput {
rtc::Optional<RTPHeader> NextHeader() const override {
RTC_DCHECK(packet_);
- return rtc::Optional<RTPHeader>(packet_->header.header);
+ return rtc::Optional<RTPHeader>(packet_->header);
}
private:
@@ -99,17 +99,17 @@ class FuzzRtpInput : public NetEqInput {
}
RTC_DCHECK(packet_);
const size_t start_ix = data_ix_;
- packet_->header.header.payloadType =
+ packet_->header.payloadType =
ByteReader<uint8_t>::ReadLittleEndian(&data_[data_ix_]);
- packet_->header.header.payloadType &= 0x7F;
+ packet_->header.payloadType &= 0x7F;
data_ix_ += sizeof(uint8_t);
- packet_->header.header.sequenceNumber =
+ packet_->header.sequenceNumber =
ByteReader<uint16_t>::ReadLittleEndian(&data_[data_ix_]);
data_ix_ += sizeof(uint16_t);
- packet_->header.header.timestamp =
+ packet_->header.timestamp =
ByteReader<uint32_t>::ReadLittleEndian(&data_[data_ix_]);
data_ix_ += sizeof(uint32_t);
- packet_->header.header.ssrc =
+ packet_->header.ssrc =
ByteReader<uint32_t>::ReadLittleEndian(&data_[data_ix_]);
data_ix_ += sizeof(uint32_t);
RTC_CHECK_EQ(data_ix_ - start_ix, kNumBytesToFuzz);
« no previous file with comments | « webrtc/modules/audio_coding/neteq/tools/rtp_generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698