Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #include "api/rtp_headers.h" |
| 12 | |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 13 | namespace webrtc { |
| 14 | |
| 15 | RTPHeaderExtension::RTPHeaderExtension() |
| 16 | : hasTransmissionTimeOffset(false), |
| 17 | transmissionTimeOffset(0), |
| 18 | hasAbsoluteSendTime(false), |
| 19 | absoluteSendTime(0), |
| 20 | hasTransportSequenceNumber(false), |
| 21 | transportSequenceNumber(0), |
| 22 | hasAudioLevel(false), |
| 23 | voiceActivity(false), |
| 24 | audioLevel(0), |
| 25 | hasVideoRotation(false), |
| 26 | videoRotation(kVideoRotation_0), |
| 27 | hasVideoContentType(false), |
| 28 | videoContentType(VideoContentType::UNSPECIFIED), |
philipel | 9465978 | 2020-06-15 10:26:39 | [diff] [blame] | 29 | has_video_timing(false) {} |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 30 | |
| 31 | RTPHeaderExtension::RTPHeaderExtension(const RTPHeaderExtension& other) = |
| 32 | default; |
| 33 | |
| 34 | RTPHeaderExtension& RTPHeaderExtension::operator=( |
| 35 | const RTPHeaderExtension& other) = default; |
| 36 | |
| 37 | RTPHeader::RTPHeader() |
| 38 | : markerBit(false), |
| 39 | payloadType(0), |
| 40 | sequenceNumber(0), |
| 41 | timestamp(0), |
| 42 | ssrc(0), |
| 43 | numCSRCs(0), |
| 44 | arrOfCSRCs(), |
| 45 | paddingLength(0), |
| 46 | headerLength(0), |
Patrik Höglund | 3e11343 | 2017-12-15 13:40:10 | [diff] [blame] | 47 | extension() {} |
| 48 | |
| 49 | RTPHeader::RTPHeader(const RTPHeader& other) = default; |
| 50 | |
| 51 | RTPHeader& RTPHeader::operator=(const RTPHeader& other) = default; |
| 52 | |
| 53 | } // namespace webrtc |