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

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

Issue 1903043003: WIP: Adding a centralized NetEq Clock (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@neteq-remove-type-param
Patch Set: Created 4 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/payload_splitter.cc
diff --git a/webrtc/modules/audio_coding/neteq/payload_splitter.cc b/webrtc/modules/audio_coding/neteq/payload_splitter.cc
index 8530718134160341fff8519042f7b35f87d28fc5..100a2e7918e53403945381d22fb4a1b7451de603 100644
--- a/webrtc/modules/audio_coding/neteq/payload_splitter.cc
+++ b/webrtc/modules/audio_coding/neteq/payload_splitter.cc
@@ -12,6 +12,7 @@
#include <assert.h>
+#include "webrtc/base/checks.h"
#include "webrtc/base/logging.h"
#include "webrtc/modules/audio_coding/neteq/decoder_database.h"
@@ -167,8 +168,9 @@ int PayloadSplitter::SplitFec(PacketList* packet_list,
memcpy(new_packet->payload, packet->payload, packet->payload_length);
new_packet->payload_length = packet->payload_length;
new_packet->primary = false;
- new_packet->waiting_time = packet->waiting_time;
new_packet->sync_packet = packet->sync_packet;
+ // Waiting time should not be set here.
+ RTC_DCHECK(!packet->waiting_time);
packet_list->insert(it, new_packet);
break;
« no previous file with comments | « webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc ('k') | webrtc/modules/audio_coding/neteq/tick_timer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698