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

Unified Diff: webrtc/modules/audio_coding/neteq/payload_splitter.cc

Issue 2309303002: Removed sync packet support from NetEq. (Closed)
Patch Set: Created 4 years, 3 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/packet_buffer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/neteq/payload_splitter.cc
diff --git a/webrtc/modules/audio_coding/neteq/payload_splitter.cc b/webrtc/modules/audio_coding/neteq/payload_splitter.cc
index a561440cab744513d19004ae1285f0ba1fab750e..074d1a2f0cfd4a037d478eeed51c52a8cb0cde33 100644
--- a/webrtc/modules/audio_coding/neteq/payload_splitter.cc
+++ b/webrtc/modules/audio_coding/neteq/payload_splitter.cc
@@ -137,11 +137,6 @@ int PayloadSplitter::SplitFec(PacketList* packet_list,
LOG(LS_WARNING) << "SplitFec unknown payload type";
return kUnknownPayloadType;
}
- // No splitting for a sync-packet.
- if (packet->sync_packet) {
- ++it;
- continue;
- }
// Not an FEC packet.
AudioDecoder* decoder = decoder_database->GetDecoder(payload_type);
@@ -169,7 +164,6 @@ int PayloadSplitter::SplitFec(PacketList* packet_list,
new_packet->header.timestamp -= duration;
new_packet->payload.SetData(packet->payload);
new_packet->primary = false;
- new_packet->sync_packet = packet->sync_packet;
// Waiting time should not be set here.
RTC_DCHECK(!packet->waiting_time);
@@ -231,11 +225,6 @@ int PayloadSplitter::SplitAudio(PacketList* packet_list,
LOG(LS_WARNING) << "SplitAudio unknown payload type";
return kUnknownPayloadType;
}
- // No splitting for a sync-packet.
- if (packet->sync_packet) {
- ++it;
- continue;
- }
PacketList new_packets;
switch (info->codec_type) {
case NetEqDecoder::kDecoderPCMu:
« no previous file with comments | « webrtc/modules/audio_coding/neteq/packet_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698