diff --git a/webrtc/modules/audio_coding/neteq4/packet_buffer.cc b/webrtc/modules/audio_coding/neteq4/packet_buffer.cc index 33ff9a6b1..bcd0e7b4b 100644 --- a/webrtc/modules/audio_coding/neteq4/packet_buffer.cc +++ b/webrtc/modules/audio_coding/neteq4/packet_buffer.cc @@ -184,9 +184,9 @@ int PacketBuffer::DiscardNextPacket() { if (Empty()) { return kBufferEmpty; } - Packet* temp_packet = buffer_.front(); // Assert that the packet sanity checks in InsertPacket method works. - assert(temp_packet && temp_packet->payload); + assert(buffer_.front()); + assert(buffer_.front()->payload); DeleteFirstPacket(&buffer_); return kOK; }