| Index: webrtc/modules/rtp_rtcp/source/rtp_utility.cc
|
| diff --git a/webrtc/modules/rtp_rtcp/source/rtp_utility.cc b/webrtc/modules/rtp_rtcp/source/rtp_utility.cc
|
| index 0d083bd92a5289f5c4e940c40a0eea096c01190e..a411e1e6b406b94e5306d8bf27254fc57f65ff4b 100644
|
| --- a/webrtc/modules/rtp_rtcp/source/rtp_utility.cc
|
| +++ b/webrtc/modules/rtp_rtcp/source/rtp_utility.cc
|
| @@ -312,6 +312,7 @@ bool RtpHeaderParser::Parse(RTPHeader& header,
|
|
|
| // May not be present in packet.
|
| header.extension.hasAudioLevel = false;
|
| + header.extension.voiceActivity = false;
|
| header.extension.audioLevel = 0;
|
|
|
| // May not be present in packet.
|
| @@ -430,7 +431,8 @@ void RtpHeaderParser::ParseOneByteExtensionHeader(
|
| // DEBUG_PRINT("RTP_AUDIO_LEVEL_UNIQUE_ID: ID=%u, len=%u, V=%u,
|
| // level=%u", ID, len, V, level);
|
|
|
| - header.extension.audioLevel = ptr[0];
|
| + header.extension.audioLevel = ptr[0] & 0x7f;
|
| + header.extension.voiceActivity = (ptr[0] & 0x80) != 0;
|
| header.extension.hasAudioLevel = true;
|
| break;
|
| }
|
|
|