| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 462 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| 463 | 463 |
| 464 if (ptr[0] < | 464 if (ptr[0] < |
| 465 static_cast<uint8_t>(VideoContentType::TOTAL_CONTENT_TYPES)) { | 465 static_cast<uint8_t>(VideoContentType::TOTAL_CONTENT_TYPES)) { |
| 466 header->extension.hasVideoContentType = true; | 466 header->extension.hasVideoContentType = true; |
| 467 header->extension.videoContentType = | 467 header->extension.videoContentType = |
| 468 static_cast<VideoContentType>(ptr[0]); | 468 static_cast<VideoContentType>(ptr[0]); |
| 469 } | 469 } |
| 470 break; | 470 break; |
| 471 } | 471 } |
| 472 case kRtpExtensionRtpStreamId: { |
| 473 header->extension.stream_id.Set(rtc::MakeArrayView(ptr, len + 1)); |
| 474 break; |
| 475 } |
| 476 case kRtpExtensionRepairedRtpStreamId: { |
| 477 header->extension.repaired_stream_id.Set( |
| 478 rtc::MakeArrayView(ptr, len + 1)); |
| 479 break; |
| 480 } |
| 472 case kRtpExtensionNone: | 481 case kRtpExtensionNone: |
| 473 case kRtpExtensionNumberOfExtensions: { | 482 case kRtpExtensionNumberOfExtensions: { |
| 474 RTC_NOTREACHED() << "Invalid extension type: " << type; | 483 RTC_NOTREACHED() << "Invalid extension type: " << type; |
| 475 return; | 484 return; |
| 476 } | 485 } |
| 477 } | 486 } |
| 478 } | 487 } |
| 479 ptr += (len + 1); | 488 ptr += (len + 1); |
| 480 } | 489 } |
| 481 } | 490 } |
| 482 | 491 |
| 483 } // namespace RtpUtility | 492 } // namespace RtpUtility |
| 484 } // namespace webrtc | 493 } // namespace webrtc |
| OLD | NEW |