Chromium Code Reviews

Unified Diff: webrtc/modules/audio_coding/neteq/tools/packet.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.
Jump to:
View side-by-side diff with in-line comments
Index: webrtc/modules/audio_coding/neteq/tools/packet.cc
diff --git a/webrtc/modules/audio_coding/neteq/tools/packet.cc b/webrtc/modules/audio_coding/neteq/tools/packet.cc
index 0ed1be1b0288e5e683f1d910f3333381ce699a59..0430933824e1c3303e51a78a696d5d6a0d4c1372 100644
--- a/webrtc/modules/audio_coding/neteq/tools/packet.cc
+++ b/webrtc/modules/audio_coding/neteq/tools/packet.cc
@@ -126,14 +126,6 @@ void Packet::DeleteRedHeaders(std::list<RTPHeader*>* headers) {
}
}
-void Packet::ConvertHeader(WebRtcRTPHeader* copy_to) const {
- memcpy(&copy_to->header, &header_, sizeof(header_));
- copy_to->frameType = kAudioFrameSpeech;
- copy_to->type.Audio.numEnergy = 0;
- copy_to->type.Audio.channel = 1;
- copy_to->type.Audio.isCNG = false;
-}
-
bool Packet::ParseHeader(const RtpHeaderParser& parser) {
bool valid_header = parser.Parse(
payload_memory_.get(), static_cast<int>(packet_length_bytes_), &header_);
« no previous file with comments | « webrtc/modules/audio_coding/neteq/tools/packet.h ('k') | webrtc/modules/audio_coding/neteq/tools/rtp_generator.h » ('j') | no next file with comments »

Powered by Google App Engine