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

Unified Diff: webrtc/modules/video_coding/h264_sps_pps_tracker.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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/video_coding/h264_sps_pps_tracker.cc
diff --git a/webrtc/modules/video_coding/h264_sps_pps_tracker.cc b/webrtc/modules/video_coding/h264_sps_pps_tracker.cc
index 3f11eb5f5b2eb78bb9debdfa45ed7545b0dc33ae..7bcc2b7c5e47d0293fa903d2c93f0cff309487b3 100644
--- a/webrtc/modules/video_coding/h264_sps_pps_tracker.cc
+++ b/webrtc/modules/video_coding/h264_sps_pps_tracker.cc
@@ -67,7 +67,7 @@
// If this is the first packet of an IDR, make sure we have the required
// SPS/PPS and also calculate how much extra space we need in the buffer
// to prepend the SPS/PPS to the bitstream with start codes.
- if (video_header.is_first_packet_in_frame) {
+ if (video_header.isFirstPacket) {
if (nalu.pps_id == -1) {
LOG(LS_WARNING) << "No PPS id in IDR nalu.";
return kRequestKeyframe;
@@ -108,7 +108,7 @@
if (codec_header.packetization_type == kH264StapA) {
const uint8_t* nalu_ptr = data + 1;
while (nalu_ptr < data + data_size) {
- RTC_DCHECK(video_header.is_first_packet_in_frame);
+ RTC_DCHECK(video_header.isFirstPacket);
required_size += sizeof(start_code_h264);
// The first two bytes describe the length of a segment.
@@ -119,7 +119,7 @@
nalu_ptr += segment_length;
}
} else {
- if (video_header.is_first_packet_in_frame)
+ if (video_header.isFirstPacket)
required_size += sizeof(start_code_h264);
required_size += data_size;
}
@@ -167,7 +167,7 @@
nalu_ptr += segment_length;
}
} else {
- if (video_header.is_first_packet_in_frame) {
+ if (video_header.isFirstPacket) {
memcpy(insert_at, start_code_h264, sizeof(start_code_h264));
insert_at += sizeof(start_code_h264);
}
« no previous file with comments | « webrtc/modules/video_coding/frame_buffer.cc ('k') | webrtc/modules/video_coding/h264_sps_pps_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698