Chromium Code Reviews| 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(); |