| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 14 matching lines...) Expand all Loading... |
| 25 sizeBytes(0), | 25 sizeBytes(0), |
| 26 markerBit(false), | 26 markerBit(false), |
| 27 timesNacked(-1), | 27 timesNacked(-1), |
| 28 frameType(kEmptyFrame), | 28 frameType(kEmptyFrame), |
| 29 codec(kVideoCodecUnknown), | 29 codec(kVideoCodecUnknown), |
| 30 is_first_packet_in_frame(false), | 30 is_first_packet_in_frame(false), |
| 31 completeNALU(kNaluUnset), | 31 completeNALU(kNaluUnset), |
| 32 insertStartCode(false), | 32 insertStartCode(false), |
| 33 width(0), | 33 width(0), |
| 34 height(0), | 34 height(0), |
| 35 video_header() { | 35 video_header(), |
| 36 receive_time_ms(0) { |
| 36 video_header.playout_delay = {-1, -1}; | 37 video_header.playout_delay = {-1, -1}; |
| 37 } | 38 } |
| 38 | 39 |
| 39 VCMPacket::VCMPacket(const uint8_t* ptr, | 40 VCMPacket::VCMPacket(const uint8_t* ptr, |
| 40 const size_t size, | 41 const size_t size, |
| 41 const WebRtcRTPHeader& rtpHeader) | 42 const WebRtcRTPHeader& rtpHeader) |
| 42 : payloadType(rtpHeader.header.payloadType), | 43 : payloadType(rtpHeader.header.payloadType), |
| 43 timestamp(rtpHeader.header.timestamp), | 44 timestamp(rtpHeader.header.timestamp), |
| 44 ntp_time_ms_(rtpHeader.ntp_time_ms), | 45 ntp_time_ms_(rtpHeader.ntp_time_ms), |
| 45 seqNum(rtpHeader.header.sequenceNumber), | 46 seqNum(rtpHeader.header.sequenceNumber), |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 codec = kVideoCodecH264; | 134 codec = kVideoCodecH264; |
| 134 return; | 135 return; |
| 135 case kRtpVideoGeneric: | 136 case kRtpVideoGeneric: |
| 136 case kRtpVideoNone: | 137 case kRtpVideoNone: |
| 137 codec = kVideoCodecUnknown; | 138 codec = kVideoCodecUnknown; |
| 138 return; | 139 return; |
| 139 } | 140 } |
| 140 } | 141 } |
| 141 | 142 |
| 142 } // namespace webrtc | 143 } // namespace webrtc |
| OLD | NEW |