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

Unified Diff: webrtc/modules/audio_coding/neteq/tools/rtp_generator.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.h ('k') | webrtc/test/fuzzers/neteq_rtp_fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/neteq/tools/rtp_generator.cc
diff --git a/webrtc/modules/audio_coding/neteq/tools/rtp_generator.cc b/webrtc/modules/audio_coding/neteq/tools/rtp_generator.cc
index db9988d904d48957b7e492c1ded7499606c4ddab..a6e883dccfb448879cd12e5b265aa621717180ef 100644
--- a/webrtc/modules/audio_coding/neteq/tools/rtp_generator.cc
+++ b/webrtc/modules/audio_coding/neteq/tools/rtp_generator.cc
@@ -17,19 +17,18 @@ namespace test {
uint32_t RtpGenerator::GetRtpHeader(uint8_t payload_type,
size_t payload_length_samples,
- WebRtcRTPHeader* rtp_header) {
+ RTPHeader* rtp_header) {
assert(rtp_header);
if (!rtp_header) {
return 0;
}
- rtp_header->header.sequenceNumber = seq_number_++;
- rtp_header->header.timestamp = timestamp_;
+ rtp_header->sequenceNumber = seq_number_++;
+ rtp_header->timestamp = timestamp_;
timestamp_ += static_cast<uint32_t>(payload_length_samples);
- rtp_header->header.payloadType = payload_type;
- rtp_header->header.markerBit = false;
- rtp_header->header.ssrc = ssrc_;
- rtp_header->header.numCSRCs = 0;
- rtp_header->frameType = kAudioFrameSpeech;
+ rtp_header->payloadType = payload_type;
+ rtp_header->markerBit = false;
+ rtp_header->ssrc = ssrc_;
+ rtp_header->numCSRCs = 0;
uint32_t this_send_time = next_send_time_ms_;
assert(samples_per_ms_ > 0);
@@ -46,7 +45,7 @@ void RtpGenerator::set_drift_factor(double factor) {
uint32_t TimestampJumpRtpGenerator::GetRtpHeader(uint8_t payload_type,
size_t payload_length_samples,
- WebRtcRTPHeader* rtp_header) {
+ RTPHeader* rtp_header) {
uint32_t ret = RtpGenerator::GetRtpHeader(
payload_type, payload_length_samples, rtp_header);
if (timestamp_ - static_cast<uint32_t>(payload_length_samples) <=
« no previous file with comments | « webrtc/modules/audio_coding/neteq/tools/rtp_generator.h ('k') | webrtc/test/fuzzers/neteq_rtp_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698