rtp_headers.cc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. #include "api/rtp_headers.h"
  11. namespace webrtc {
  12. RTPHeaderExtension::RTPHeaderExtension()
  13. : hasTransmissionTimeOffset(false),
  14. transmissionTimeOffset(0),
  15. hasAbsoluteSendTime(false),
  16. absoluteSendTime(0),
  17. hasTransportSequenceNumber(false),
  18. transportSequenceNumber(0),
  19. hasAudioLevel(false),
  20. voiceActivity(false),
  21. audioLevel(0),
  22. hasVideoRotation(false),
  23. videoRotation(kVideoRotation_0),
  24. hasVideoContentType(false),
  25. videoContentType(VideoContentType::UNSPECIFIED),
  26. has_video_timing(false) {}
  27. RTPHeaderExtension::RTPHeaderExtension(const RTPHeaderExtension& other) =
  28. default;
  29. RTPHeaderExtension& RTPHeaderExtension::operator=(
  30. const RTPHeaderExtension& other) = default;
  31. RTPHeader::RTPHeader()
  32. : markerBit(false),
  33. payloadType(0),
  34. sequenceNumber(0),
  35. timestamp(0),
  36. ssrc(0),
  37. numCSRCs(0),
  38. arrOfCSRCs(),
  39. paddingLength(0),
  40. headerLength(0),
  41. payload_type_frequency(0),
  42. extension() {}
  43. RTPHeader::RTPHeader(const RTPHeader& other) = default;
  44. RTPHeader& RTPHeader::operator=(const RTPHeader& other) = default;
  45. } // namespace webrtc