From 3bf97cf0602f150e05b5424735cced520aa0cfef Mon Sep 17 00:00:00 2001 From: philipel Date: Thu, 10 Aug 2017 18:10:59 +0200 Subject: [PATCH] Workaround for PacketBuffer bug. There exist a bug in the video_coding::PacketBuffer which triggers when a frame is the same size as the buffer. A trivial workaround is to increase the start size to something big so that this never happens in practice. The bug has been fixed but we still want to test the workaround in ToT, which is why this CL exist. BUG=webrtc:8028, chromium:752886 R=stefan@webrtc.org Review-Url: https://codereview.webrtc.org/2994093002 . Cr-Commit-Position: refs/heads/master@{#19308} --- webrtc/video/rtp_video_stream_receiver.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webrtc/video/rtp_video_stream_receiver.cc b/webrtc/video/rtp_video_stream_receiver.cc index 66df339efe..d4464ac21d 100644 --- a/webrtc/video/rtp_video_stream_receiver.cc +++ b/webrtc/video/rtp_video_stream_receiver.cc @@ -43,7 +43,9 @@ namespace webrtc { namespace { -constexpr int kPacketBufferStartSize = 32; +// TODO(philipel): Change kPacketBufferStartSize back to 32 in M63 see: +// crbug.com/752886 +constexpr int kPacketBufferStartSize = 512; constexpr int kPacketBufferMaxSixe = 2048; }