diff --git a/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc b/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc index 04cfe14407..134548518e 100644 --- a/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc +++ b/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc @@ -198,12 +198,10 @@ int32_t RTPReceiverAudio::ParseRtpPacket(WebRtcRTPHeader* rtp_header, rtp_header->type.Audio.arrOfEnergy, rtp_header->type.Audio.numEnergy); } - const uint16_t payload_data_length = payload_length - - rtp_header->header.paddingLength; return ParseAudioCodecSpecific(rtp_header, payload, - payload_data_length, + payload_length, specific_payload.Audio, is_red); }