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

Side by Side Diff: webrtc/video/rtp_video_stream_receiver.cc

Issue 2994093002: Workaround for PacketBuffer bug. (Closed)
Patch Set: Created 3 years, 4 months 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 | « no previous file | no next file » | 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) 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 25 matching lines...) Expand all
36 #include "webrtc/rtc_base/location.h" 36 #include "webrtc/rtc_base/location.h"
37 #include "webrtc/rtc_base/logging.h" 37 #include "webrtc/rtc_base/logging.h"
38 #include "webrtc/system_wrappers/include/field_trial.h" 38 #include "webrtc/system_wrappers/include/field_trial.h"
39 #include "webrtc/system_wrappers/include/metrics.h" 39 #include "webrtc/system_wrappers/include/metrics.h"
40 #include "webrtc/system_wrappers/include/timestamp_extrapolator.h" 40 #include "webrtc/system_wrappers/include/timestamp_extrapolator.h"
41 #include "webrtc/video/receive_statistics_proxy.h" 41 #include "webrtc/video/receive_statistics_proxy.h"
42 42
43 namespace webrtc { 43 namespace webrtc {
44 44
45 namespace { 45 namespace {
46 constexpr int kPacketBufferStartSize = 32; 46 // TODO(philipel): Change kPacketBufferStartSize back to 32 in M63 see:
47 // crbug.com/752886
48 constexpr int kPacketBufferStartSize = 512;
47 constexpr int kPacketBufferMaxSixe = 2048; 49 constexpr int kPacketBufferMaxSixe = 2048;
48 } 50 }
49 51
50 std::unique_ptr<RtpRtcp> CreateRtpRtcpModule( 52 std::unique_ptr<RtpRtcp> CreateRtpRtcpModule(
51 ReceiveStatistics* receive_statistics, 53 ReceiveStatistics* receive_statistics,
52 Transport* outgoing_transport, 54 Transport* outgoing_transport,
53 RtcpRttStats* rtt_stats, 55 RtcpRttStats* rtt_stats,
54 RtcpPacketTypeCounterObserver* rtcp_packet_type_counter_observer, 56 RtcpPacketTypeCounterObserver* rtcp_packet_type_counter_observer,
55 TransportSequenceNumberAllocator* transport_sequence_number_allocator) { 57 TransportSequenceNumberAllocator* transport_sequence_number_allocator) {
56 RtpRtcp::Configuration configuration; 58 RtpRtcp::Configuration configuration;
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 return; 716 return;
715 717
716 if (!sprop_decoder.DecodeSprop(sprop_base64_it->second.c_str())) 718 if (!sprop_decoder.DecodeSprop(sprop_base64_it->second.c_str()))
717 return; 719 return;
718 720
719 tracker_.InsertSpsPpsNalus(sprop_decoder.sps_nalu(), 721 tracker_.InsertSpsPpsNalus(sprop_decoder.sps_nalu(),
720 sprop_decoder.pps_nalu()); 722 sprop_decoder.pps_nalu());
721 } 723 }
722 724
723 } // namespace webrtc 725 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698