| 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 8a8be1019a823c0799e6bf53908081951606188d..ab02fd9c83797738bf1c129921268066f53e6a1c 100644
|
| --- a/webrtc/modules/rtp_rtcp/source/rtp_utility.cc
|
| +++ b/webrtc/modules/rtp_rtcp/source/rtp_utility.cc
|
| @@ -457,11 +457,9 @@ void RtpHeaderParser::ParseOneByteExtensionHeader(
|
| // | ID | len=0 | Content type |
|
| // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
|
| - if (ptr[0] <
|
| - static_cast<uint8_t>(VideoContentType::TOTAL_CONTENT_TYPES)) {
|
| + if (VideoContentType::IsValidContentType(ptr[0])) {
|
| header->extension.hasVideoContentType = true;
|
| - header->extension.videoContentType =
|
| - static_cast<VideoContentType>(ptr[0]);
|
| + header->extension.videoContentType = ptr[0];
|
| }
|
| break;
|
| }
|
|
|