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

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

Issue 2342443005: Moved Opus-specific payload splitting into AudioDecoderOpus. (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
Index: webrtc/modules/audio_coding/neteq/packet_buffer.cc
diff --git a/webrtc/modules/audio_coding/neteq/packet_buffer.cc b/webrtc/modules/audio_coding/neteq/packet_buffer.cc
index 16c4e707bc8c836ad3968d243ff10d115ff0adc7..5bb8cb1b3195c5d94ae7ed7b6c98bf093dc2b6c1 100644
--- a/webrtc/modules/audio_coding/neteq/packet_buffer.cc
+++ b/webrtc/modules/audio_coding/neteq/packet_buffer.cc
@@ -269,7 +269,8 @@ size_t PacketBuffer::NumSamplesInBuffer(size_t last_decoded_length) const {
size_t last_duration = last_decoded_length;
for (Packet* packet : buffer_) {
if (packet->frame) {
- if (!packet->primary) {
+ // TODO(ossu): Check that this is really want we want to filter on.
hlundin-webrtc 2016/09/15 09:33:30 I would argue that also the old code was wrong. Th
ossu 2016/09/15 12:22:53 Acknowledged.
ossu 2016/09/19 14:07:34 I tried putting something else here: checking only
+ if (packet->priority != Packet::kHighestPriority) {
continue;
}
size_t duration = packet->frame->Duration();

Powered by Google App Engine
This is Rietveld 408576698