OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 if (header.extension.hasVideoRotation) { | 553 if (header.extension.hasVideoRotation) { |
554 rtp_header.type.Video.rotation = header.extension.videoRotation; | 554 rtp_header.type.Video.rotation = header.extension.videoRotation; |
555 } | 555 } |
556 rtp_header.type.Video.content_type = VideoContentType::UNSPECIFIED; | 556 rtp_header.type.Video.content_type = VideoContentType::UNSPECIFIED; |
557 if (header.extension.hasVideoContentType) { | 557 if (header.extension.hasVideoContentType) { |
558 rtp_header.type.Video.content_type = header.extension.videoContentType; | 558 rtp_header.type.Video.content_type = header.extension.videoContentType; |
559 } | 559 } |
560 rtp_header.type.Video.video_timing = {0u, 0u, 0u, 0u, 0u, 0u, false}; | 560 rtp_header.type.Video.video_timing = {0u, 0u, 0u, 0u, 0u, 0u, false}; |
561 if (header.extension.has_video_timing) { | 561 if (header.extension.has_video_timing) { |
562 rtp_header.type.Video.video_timing = header.extension.video_timing; | 562 rtp_header.type.Video.video_timing = header.extension.video_timing; |
563 rtp_header.type.Video.video_timing.is_timing_frame = true; | |
564 } | 563 } |
565 rtp_header.type.Video.playout_delay = header.extension.playout_delay; | 564 rtp_header.type.Video.playout_delay = header.extension.playout_delay; |
566 | 565 |
567 OnReceivedPayloadData(nullptr, 0, &rtp_header); | 566 OnReceivedPayloadData(nullptr, 0, &rtp_header); |
568 } | 567 } |
569 | 568 |
570 bool RtpVideoStreamReceiver::DeliverRtcp(const uint8_t* rtcp_packet, | 569 bool RtpVideoStreamReceiver::DeliverRtcp(const uint8_t* rtcp_packet, |
571 size_t rtcp_packet_length) { | 570 size_t rtcp_packet_length) { |
572 { | 571 { |
573 rtc::CritScope lock(&receive_cs_); | 572 rtc::CritScope lock(&receive_cs_); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 return; | 715 return; |
717 | 716 |
718 if (!sprop_decoder.DecodeSprop(sprop_base64_it->second.c_str())) | 717 if (!sprop_decoder.DecodeSprop(sprop_base64_it->second.c_str())) |
719 return; | 718 return; |
720 | 719 |
721 tracker_.InsertSpsPpsNalus(sprop_decoder.sps_nalu(), | 720 tracker_.InsertSpsPpsNalus(sprop_decoder.sps_nalu(), |
722 sprop_decoder.pps_nalu()); | 721 sprop_decoder.pps_nalu()); |
723 } | 722 } |
724 | 723 |
725 } // namespace webrtc | 724 } // namespace webrtc |
OLD | NEW |