Skip to content

Commit

Permalink
Fix: NetEq PacketBuffer logs discarded packet with wrong codec level …
Browse files Browse the repository at this point in the history
…when new packet replaces the lower level packet

Bug: webrtc:9370
Change-Id: I59606ef6ea9bbf26de844a2fd3f597856271a86a
Reviewed-on: https://webrtc-review.googlesource.com/81700
Commit-Queue: Henrik Lundin <[email protected]>
Reviewed-by: Henrik Lundin <[email protected]>
Reviewed-by: Minyue Li <[email protected]>
Cr-Commit-Position: refs/heads/master@{#23555}
  • Loading branch information
pyu1538 authored and Commit Bot committed Jun 8, 2018
1 parent ec9c745 commit b90e63c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Mo Zanaty <[email protected]>
Pali Rohar
Paul Kapustin <[email protected]>
Philipp Hancke <[email protected]>
Peng Yu <[email protected]>
Rafael Lopez Diez <[email protected]>
Ralph Giles <[email protected]>
Riku Voipio <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion modules/audio_coding/neteq/packet_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ int PacketBuffer::InsertPacket(Packet&& packet, StatisticsCalculator* stats) {
// packet.
PacketList::iterator it = rit.base();
if (it != buffer_.end() && packet.timestamp == it->timestamp) {
LogPacketDiscarded(packet.priority.codec_level, stats);
LogPacketDiscarded(it->priority.codec_level, stats);
it = buffer_.erase(it);
}
buffer_.insert(it, std::move(packet)); // Insert the packet at that position.
Expand Down

0 comments on commit b90e63c

Please sign in to comment.