| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 return false; | 98 return false; |
| 99 } | 99 } |
| 100 | 100 |
| 101 uint8_t generic_header = *payload_data++; | 101 uint8_t generic_header = *payload_data++; |
| 102 --payload_data_length; | 102 --payload_data_length; |
| 103 | 103 |
| 104 parsed_payload->frame_type = | 104 parsed_payload->frame_type = |
| 105 ((generic_header & RtpFormatVideoGeneric::kKeyFrameBit) != 0) | 105 ((generic_header & RtpFormatVideoGeneric::kKeyFrameBit) != 0) |
| 106 ? kVideoFrameKey | 106 ? kVideoFrameKey |
| 107 : kVideoFrameDelta; | 107 : kVideoFrameDelta; |
| 108 parsed_payload->type.Video.isFirstPacket = | 108 parsed_payload->type.Video.is_first_packet_in_frame = |
| 109 (generic_header & RtpFormatVideoGeneric::kFirstPacketBit) != 0; | 109 (generic_header & RtpFormatVideoGeneric::kFirstPacketBit) != 0; |
| 110 parsed_payload->type.Video.codec = kRtpVideoGeneric; | 110 parsed_payload->type.Video.codec = kRtpVideoGeneric; |
| 111 parsed_payload->type.Video.width = 0; | 111 parsed_payload->type.Video.width = 0; |
| 112 parsed_payload->type.Video.height = 0; | 112 parsed_payload->type.Video.height = 0; |
| 113 | 113 |
| 114 parsed_payload->payload = payload_data; | 114 parsed_payload->payload = payload_data; |
| 115 parsed_payload->payload_length = payload_data_length; | 115 parsed_payload->payload_length = payload_data_length; |
| 116 return true; | 116 return true; |
| 117 } | 117 } |
| 118 } // namespace webrtc | 118 } // namespace webrtc |
| OLD | NEW |