| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 if (sequence_buffer_[index].used) { | 96 if (sequence_buffer_[index].used) { |
| 97 delete[] packet->dataPtr; | 97 delete[] packet->dataPtr; |
| 98 packet->dataPtr = nullptr; | 98 packet->dataPtr = nullptr; |
| 99 return false; | 99 return false; |
| 100 } | 100 } |
| 101 } | 101 } |
| 102 | 102 |
| 103 if (AheadOf(seq_num, last_seq_num_)) | 103 if (AheadOf(seq_num, last_seq_num_)) |
| 104 last_seq_num_ = seq_num; | 104 last_seq_num_ = seq_num; |
| 105 | 105 |
| 106 sequence_buffer_[index].frame_begin = packet->is_first_packet_in_frame; | 106 sequence_buffer_[index].frame_begin = packet->isFirstPacket; |
| 107 sequence_buffer_[index].frame_end = packet->markerBit; | 107 sequence_buffer_[index].frame_end = packet->markerBit; |
| 108 sequence_buffer_[index].seq_num = packet->seqNum; | 108 sequence_buffer_[index].seq_num = packet->seqNum; |
| 109 sequence_buffer_[index].continuous = false; | 109 sequence_buffer_[index].continuous = false; |
| 110 sequence_buffer_[index].frame_created = false; | 110 sequence_buffer_[index].frame_created = false; |
| 111 sequence_buffer_[index].used = true; | 111 sequence_buffer_[index].used = true; |
| 112 data_buffer_[index] = *packet; | 112 data_buffer_[index] = *packet; |
| 113 packet->dataPtr = nullptr; | 113 packet->dataPtr = nullptr; |
| 114 | 114 |
| 115 found_frames = FindFrames(seq_num); | 115 found_frames = FindFrames(seq_num); |
| 116 } | 116 } |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 int PacketBuffer::Release() const { | 293 int PacketBuffer::Release() const { |
| 294 int count = rtc::AtomicOps::Decrement(&ref_count_); | 294 int count = rtc::AtomicOps::Decrement(&ref_count_); |
| 295 if (!count) { | 295 if (!count) { |
| 296 delete this; | 296 delete this; |
| 297 } | 297 } |
| 298 return count; | 298 return count; |
| 299 } | 299 } |
| 300 | 300 |
| 301 } // namespace video_coding | 301 } // namespace video_coding |
| 302 } // namespace webrtc | 302 } // namespace webrtc |
| OLD | NEW |