Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: webrtc/modules/video_coding/packet_buffer.cc

Issue 2589783003: Revert of Rename RTPVideoHeader.isFirstPacket to .is_first_packet_in_frame. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/video_coding/packet.cc ('k') | webrtc/modules/video_coding/session_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/packet.cc ('k') | webrtc/modules/video_coding/session_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698