| 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 7bcc2b7c5e47d0293fa903d2c93f0cff309487b3..3f11eb5f5b2eb78bb9debdfa45ed7545b0dc33ae 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 @@ H264SpsPpsTracker::PacketAction H264SpsPpsTracker::CopyAndFixBitstream(
|
| // 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.isFirstPacket) {
|
| + if (video_header.is_first_packet_in_frame) {
|
| if (nalu.pps_id == -1) {
|
| LOG(LS_WARNING) << "No PPS id in IDR nalu.";
|
| return kRequestKeyframe;
|
| @@ -108,7 +108,7 @@ H264SpsPpsTracker::PacketAction H264SpsPpsTracker::CopyAndFixBitstream(
|
| if (codec_header.packetization_type == kH264StapA) {
|
| const uint8_t* nalu_ptr = data + 1;
|
| while (nalu_ptr < data + data_size) {
|
| - RTC_DCHECK(video_header.isFirstPacket);
|
| + RTC_DCHECK(video_header.is_first_packet_in_frame);
|
| required_size += sizeof(start_code_h264);
|
|
|
| // The first two bytes describe the length of a segment.
|
| @@ -119,7 +119,7 @@ H264SpsPpsTracker::PacketAction H264SpsPpsTracker::CopyAndFixBitstream(
|
| nalu_ptr += segment_length;
|
| }
|
| } else {
|
| - if (video_header.isFirstPacket)
|
| + if (video_header.is_first_packet_in_frame)
|
| required_size += sizeof(start_code_h264);
|
| required_size += data_size;
|
| }
|
| @@ -167,7 +167,7 @@ H264SpsPpsTracker::PacketAction H264SpsPpsTracker::CopyAndFixBitstream(
|
| nalu_ptr += segment_length;
|
| }
|
| } else {
|
| - if (video_header.isFirstPacket) {
|
| + if (video_header.is_first_packet_in_frame) {
|
| memcpy(insert_at, start_code_h264, sizeof(start_code_h264));
|
| insert_at += sizeof(start_code_h264);
|
| }
|
|
|