| Index: webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc
|
| diff --git a/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc b/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc
|
| index 28685b4640a9e123c55ecb5a2003dd018ddf9c89..8efb93b38bf0bcdc174a71be93227ea6db54d5b4 100644
|
| --- a/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc
|
| +++ b/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc
|
| @@ -231,9 +231,8 @@ constexpr const char VideoContentTypeExtension::kUri[];
|
|
|
| bool VideoContentTypeExtension::Parse(rtc::ArrayView<const uint8_t> data,
|
| VideoContentType* content_type) {
|
| - if (data.size() == 1 &&
|
| - data[0] < static_cast<uint8_t>(VideoContentType::TOTAL_CONTENT_TYPES)) {
|
| - *content_type = static_cast<VideoContentType>(data[0]);
|
| + if (data.size() == 1 && VideoContentType::IsValidContentType(data[0])) {
|
| + *content_type = data[0];
|
| return true;
|
| }
|
| return false;
|
|
|