blob: bf973b6fe5771d42361adb8369b30cd9b2b372c6 [file] [log] [blame]
Patrik Höglund3e113432017-12-15 14:40:10 +01001/*
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öglund3e113432017-12-15 14:40:10 +010013namespace webrtc {
14
15RTPHeaderExtension::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),
Johnny Leee0c8b232018-09-11 16:50:49 -040029 has_video_timing(false),
30 has_frame_marking(false),
31 frame_marking({false, false, false, false, false, 0xFF, 0, 0}) {}
Patrik Höglund3e113432017-12-15 14:40:10 +010032
33RTPHeaderExtension::RTPHeaderExtension(const RTPHeaderExtension& other) =
34 default;
35
36RTPHeaderExtension& RTPHeaderExtension::operator=(
37 const RTPHeaderExtension& other) = default;
38
39RTPHeader::RTPHeader()
40 : markerBit(false),
41 payloadType(0),
42 sequenceNumber(0),
43 timestamp(0),
44 ssrc(0),
45 numCSRCs(0),
46 arrOfCSRCs(),
47 paddingLength(0),
48 headerLength(0),
49 payload_type_frequency(0),
50 extension() {}
51
52RTPHeader::RTPHeader(const RTPHeader& other) = default;
53
54RTPHeader& RTPHeader::operator=(const RTPHeader& other) = default;
55
56} // namespace webrtc