10873 Commits

Author SHA1 Message Date
henrik.lundin
2c38c20e7b Fix out-of-buffer write in iLBC
In some cases, the decoder can write outside of an allocated array. See
the new comment in the code for more details.

BUG=chromium:568885, webrtc:5305

Review URL: https://codereview.webrtc.org/1704463002

Cr-Commit-Position: refs/heads/master@{#11641}
2016-02-16 18:01:57 +00:00
Stefan Holmer
44c65e9eed Enable adaptive threshold experiment by default.
BUG=webrtc:4711
R=mflodman@webrtc.org

Review URL: https://codereview.webrtc.org/1682403002 .

Cr-Commit-Position: refs/heads/master@{#11640}
2016-02-16 17:22:30 +00:00
Peter Boström
9d0c43242b Remove video-codec max bitrate from TMMBN.
TMMBN was capped by configured max bitrate for no apparent reason.
Removing this to not require payload-type reconfiguration on new
video-codec settings. Actual removal of payload-type reconfiguration
will happen in a pending CL.

BUG=webrtc:5494
R=stefan@webrtc.org

Review URL: https://codereview.webrtc.org/1702043002 .

Cr-Commit-Position: refs/heads/master@{#11639}
2016-02-16 16:59:36 +00:00
Stefan Holmer
d20327c7d7 Increase the allowed number of probe packets in test to please msan.
This started flaking due to allowing probes to restart if they were aborted due to insufficient packets. This is reasonable behavior.

TBR=pbos@webrtc.org

Review URL: https://codereview.webrtc.org/1701033002 .

Cr-Commit-Position: refs/heads/master@{#11638}
2016-02-16 16:43:37 +00:00
henrik.lundin
ee31f0a7d5 Fix out-of-buffer read in iLBC
In some cases, the decoder can read outside of an allocated array. See
the new comment in the code for more details.

BUG=chromium:568889, webrtc:5305

Review URL: https://codereview.webrtc.org/1700973002

Cr-Commit-Position: refs/heads/master@{#11637}
2016-02-16 16:42:15 +00:00
Stefan Holmer
62a5ccdb53 Update bitrate only when we have incoming packet.
Also cleans up some unused code and makes sure the min bitrate of the BWE can't be set to anything lower than 10 kbps.

BUG=webrtc:5474
R=pbos@webrtc.org

Review URL: https://codereview.webrtc.org/1699903003 .

Cr-Commit-Position: refs/heads/master@{#11636}
2016-02-16 16:07:31 +00:00
peah
58cf5f14ec Changed order of events when synthesizing a call.
This is needed when synthesizing a call based on
48 kHz audio files as otherwise an error is
generated about the wrong sample rate is generated.
That error is in turned caused by the sample rate
being changed from the default 16 kHz
at the first Capture API call event.

BUG=

Review URL: https://codereview.webrtc.org/1698243003

Cr-Commit-Position: refs/heads/master@{#11635}
2016-02-16 15:26:25 +00:00
Peter Boström
0453ef857f Prevent busy-looping PacedSender on small packets.
Skip accounting for small packets and suspend the prober if no
large-enough packets have been sent for some time. This especially seems
to have triggered in audio-only calls where all packets are too small,
making TimeUntilNextProbe return 0 forever, causing the module process
thread to wake up forever.

BUG=webrtc:5506
R=stefan@webrtc.org

Review URL: https://codereview.webrtc.org/1688703002 .

Cr-Commit-Position: refs/heads/master@{#11634}
2016-02-16 15:23:16 +00:00
Peter Boström
1794b2675f Extract ViESyncModule outside ViEChannel.
Moves functionality outside ViEChannel and away from the sender.

BUG=webrtc:5494
R=danilchap@webrtc.org

Review URL: https://codereview.webrtc.org/1698183002 .

Cr-Commit-Position: refs/heads/master@{#11633}
2016-02-16 13:12:11 +00:00
Torbjorn Granlund
a3dc79e072 Move SSLIdentity Generate() implementations from .h to .cc file.
This amends https://codereview.webrtc.org/1683193003/

BUG=
R=hbos@webrtc.org, tommi@webrtc.org

Review URL: https://codereview.webrtc.org/1701953002 .

Cr-Commit-Position: refs/heads/master@{#11632}
2016-02-16 12:34:04 +00:00
henrik.lundin
71e92dc5e8 Avoid overflow in WebRtcSpl_Sqrt
When the input to WebRtcSpl_Sqrt was the maximum negative value
(-2147483648), the calculations would overflow. This is now solved by
nudging this particular input value one step.

BUG=webrtc:5512

Review URL: https://codereview.webrtc.org/1685743003

Cr-Commit-Position: refs/heads/master@{#11631}
2016-02-15 20:38:14 +00:00
kjellander
092c951c65 Roll chromium_revision aefd358..1d144ca (375443:375480)
Change log: aefd358..1d144ca
Full diff: aefd358..1d144ca

No dependencies changed.
No update to Clang.

TBR=

Review URL: https://codereview.webrtc.org/1699933002

Cr-Commit-Position: refs/heads/master@{#11630}
2016-02-15 20:07:42 +00:00
torbjorng
e8dc081c35 Implement certificate lifetime parameter as required by WebRTC RFC.
BUG=chromium:569005

Review URL: https://codereview.webrtc.org/1683193003

Cr-Commit-Position: refs/heads/master@{#11629}
2016-02-15 17:36:01 +00:00
Peter Boström
b1ae3a45d0 Stop decoders in VideoReceiveStream destructor.
Prevents use-after-free from decoder threads since the VCM outlives
ViEChannel.

BUG=webrtc:5494
R=danilchap@webrtc.org

Review URL: https://codereview.webrtc.org/1699893002 .

Cr-Commit-Position: refs/heads/master@{#11628}
2016-02-15 16:52:50 +00:00
perkj
461121c67b Replaced eglbase_jni with with holding a EglBase in PeerConnectionFactory.
Review URL: https://codereview.webrtc.org/1695763002

Cr-Commit-Position: refs/heads/master@{#11627}
2016-02-15 14:28:40 +00:00
kjellander
8259c2de02 Roll chromium_revision 8d1f312..aefd358 (375401:375443)
Change log: 8d1f312..aefd358
Full diff: 8d1f312..aefd358

No dependencies changed.
No update to Clang.

TBR=

Review URL: https://codereview.webrtc.org/1701693002

Cr-Commit-Position: refs/heads/master@{#11626}
2016-02-15 12:22:37 +00:00
kjellander@webrtc.org
8110482297 Rename gtest_exclude for rtc_pc_unittests
This was forgotten in https://codereview.webrtc.org/1694813002/
Also clean up no-longer-used files for libjignle_unittest (renamed
to rtc_unittests a long time ago).

BUG=webrtc:5419
TBR=pbos@webrtc.org

Review URL: https://codereview.webrtc.org/1698123002 .

Cr-Commit-Position: refs/heads/master@{#11625}
2016-02-15 12:00:58 +00:00
Peter Boström
56e6269e11 Rename gtest_exclude for rtc_media_unittests.
Previous suppressions for libjingle_media_unittest stopped working when
the target was renamed rtc_media_unittests causing the bots to start
flaking.

BUG=
TBR=kjellander@webrtc.org

Review URL: https://codereview.webrtc.org/1698873002 .

Cr-Commit-Position: refs/heads/master@{#11624}
2016-02-15 10:59:21 +00:00
Peter Boström
88c52a7e7b Disable VerifyHistogramStatsWithRed on DrMemory.
Flaky due to using a real VP8 encoder.

BUG=webrtc:5264
TBR=deadbeef@webrtc.org, stefan@webrtc.org

Review URL: https://codereview.webrtc.org/1695103003 .

Cr-Commit-Position: refs/heads/master@{#11623}
2016-02-15 10:31:48 +00:00
kwiberg
16c5a96630 Replace scoped_ptr with unique_ptr in webrtc/modules/audio_coding/
BUG=webrtc:5520

Review URL: https://codereview.webrtc.org/1694073002

Cr-Commit-Position: refs/heads/master@{#11622}
2016-02-15 10:27:34 +00:00
Peter Boström
395939781b Reland of Don't send FEC for H.264 with NACK enabled. (patchset #1 id:1 of https://codereview.webrtc.org/1692783005/ )
Reason for revert:
Disabling tests on memcheck that time out due to using real VP8 encoders.

Original issue's description:
> Revert of Don't send FEC for H.264 with NACK enabled. (patchset #5 id:80001 of https://codereview.webrtc.org/1687303002/ )
>
> Reason for revert:
> Broke the VerifyHistogramStatsWithRed test on the Windows DrMemory Full bot and Linux Memcheck bot. Please fix the test and reland.
>
> Original issue's description:
> > Don't send FEC for H.264 with NACK enabled.
> >
> > The H.264 does not contain picture IDs and are not sufficient to
> > determine that a packet may be skipped. This causes retransmission
> > requests for FEC that are currently dropped by the sender (since they
> > should be redundant).
> >
> > The receiver is then unable to continue without having the packet gap
> > filled (unlike VP8/VP9 which moves on since it has a consecutive stream
> > of picture IDs).
> >
> > Even if FEC retransmission did work it's a huge waste of bandwidth,
> > since it just adds additional overhead that has to be unconditionally
> > transmitted. This bandwidth is better used to send higher-quality
> > frames.
> >
> > BUG=webrtc:5264
> > R=stefan@webrtc.org
> >
> > Committed: https://crrev.com/25558ad819b4df41ba51537e26a77480ace1e525
> > Cr-Commit-Position: refs/heads/master@{#11601}
>
> TBR=stefan@webrtc.org,pbos@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:5264
>
> Committed: https://crrev.com/29ffdc1a15e31bd81e806ff135c2100d811714f0
> Cr-Commit-Position: refs/heads/master@{#11607}

TBR=stefan@webrtc.org,deadbeef@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:5264

Review URL: https://codereview.webrtc.org/1697093002 .

Cr-Commit-Position: refs/heads/master@{#11621}
2016-02-15 10:27:22 +00:00
Danil Chapovalov
cde5d6b305 removed five redundant avsync tests to make webrtc_perf_test faster
R=kwiberg@webrtc.org, pbos@webrtc.org

Review URL: https://codereview.webrtc.org/1689163002 .

Cr-Commit-Position: refs/heads/master@{#11620}
2016-02-15 10:15:10 +00:00
kjellander@webrtc.org
e829f58928 Rename libjingle_p2p_unittest -> rtc_pc_unittests
BUG=webrtc:5419
R=pthatcher@webrtc.org
TBR=henrika@webrtc.org

Review URL: https://codereview.webrtc.org/1694813002 .

Cr-Commit-Position: refs/heads/master@{#11619}
2016-02-15 08:36:44 +00:00
kwiberg
3747838afb Replace scoped_ptr with unique_ptr in webrtc/modules/audio_coding/test/
BUG=webrtc:5520

Review URL: https://codereview.webrtc.org/1695763004

Cr-Commit-Position: refs/heads/master@{#11618}
2016-02-15 04:41:04 +00:00
kjellander
1d9ada795c Roll chromium_revision 99c33e8..8d1f312 (375382:375401)
Change log: 99c33e8..8d1f312
Full diff: 99c33e8..8d1f312

Changed dependencies:
* src/tools/gyp: 5170bfd..2f9ffdc
DEPS diff: 99c33e8..8d1f312/DEPS

No update to Clang.

TBR=

Review URL: https://codereview.webrtc.org/1698773002

Cr-Commit-Position: refs/heads/master@{#11617}
2016-02-15 04:10:47 +00:00
kwiberg
2d0c33277c Replace scoped_ptr with unique_ptr in webrtc/modules/audio_coding/neteq/
BUG=webrtc:5520

Review URL: https://codereview.webrtc.org/1697823002

Cr-Commit-Position: refs/heads/master@{#11616}
2016-02-14 17:28:39 +00:00
tommi
04af839a88 Move refcount.h and scoped_ref_ptr.h to rtc_base_approved.
BUG=

Review URL: https://codereview.webrtc.org/1701533002

Cr-Commit-Position: refs/heads/master@{#11615}
2016-02-14 16:11:17 +00:00
kjellander
290ab413be Roll chromium_revision ee3223b..99c33e8 (375377:375382)
Change log: ee3223b..99c33e8
Full diff: ee3223b..99c33e8

No dependencies changed.
No update to Clang.

TBR=

Review URL: https://codereview.webrtc.org/1701543002

Cr-Commit-Position: refs/heads/master@{#11614}
2016-02-14 12:11:30 +00:00
kwiberg
91d9756bc6 Replace scoped_ptr with unique_ptr in webrtc/modules/audio_coding/codecs/
BUG=webrtc:5520

Review URL: https://codereview.webrtc.org/1696853004

Cr-Commit-Position: refs/heads/master@{#11613}
2016-02-14 09:10:08 +00:00
kjellander
3f5f5aa449 Roll chromium_revision e1bc525..ee3223b (375361:375377)
Change log: e1bc525..ee3223b
Full diff: e1bc525..ee3223b

No dependencies changed.
No update to Clang.

TBR=

Review URL: https://codereview.webrtc.org/1695073002

Cr-Commit-Position: refs/heads/master@{#11612}
2016-02-14 04:09:22 +00:00
peah
be61562bfb Moved the GainControlForNewAGC class to be a separate file.
Apart from being motivated in order to make the source files shorter
this is needed when separating the APM submodules structs into
separate files.

BUG=

Review URL: https://codereview.webrtc.org/1678813002

Cr-Commit-Position: refs/heads/master@{#11611}
2016-02-14 00:40:53 +00:00
kjellander
46e2cb8a88 Roll chromium_revision 96c72eb..e1bc525 (375334:375361)
Change log: 96c72eb..e1bc525
Full diff: 96c72eb..e1bc525

No dependencies changed.
No update to Clang.

TBR=

Review URL: https://codereview.webrtc.org/1690863007

Cr-Commit-Position: refs/heads/master@{#11610}
2016-02-13 12:15:03 +00:00
kjellander
88ec91d266 Roll chromium_revision c9db86b..96c72eb (374913:375334)
Change log: c9db86b..96c72eb
Full diff: c9db86b..96c72eb

Changed dependencies:
* src/third_party/boringssl/src: https://boringssl.googlesource.com/boringssl.git/+log/d057454..894a47d
* src/third_party/libvpx_new/source/libvpx: f51dd8c..f288c94
DEPS diff: c9db86b..96c72eb/DEPS

No update to Clang.

TBR=marpan@webrtc.org, stefan@webrtc.org,

Review URL: https://codereview.webrtc.org/1695013002

Cr-Commit-Position: refs/heads/master@{#11609}
2016-02-13 04:27:20 +00:00
asapersson
88b0a2292a Add VP9 to full stack tests.
BUG=

Review URL: https://codereview.webrtc.org/1691953004

Cr-Commit-Position: refs/heads/master@{#11608}
2016-02-12 21:16:51 +00:00
deadbeef
29ffdc1a15 Revert of Don't send FEC for H.264 with NACK enabled. (patchset #5 id:80001 of https://codereview.webrtc.org/1687303002/ )
Reason for revert:
Broke the VerifyHistogramStatsWithRed test on the Windows DrMemory Full bot and Linux Memcheck bot. Please fix the test and reland.

Original issue's description:
> Don't send FEC for H.264 with NACK enabled.
>
> The H.264 does not contain picture IDs and are not sufficient to
> determine that a packet may be skipped. This causes retransmission
> requests for FEC that are currently dropped by the sender (since they
> should be redundant).
>
> The receiver is then unable to continue without having the packet gap
> filled (unlike VP8/VP9 which moves on since it has a consecutive stream
> of picture IDs).
>
> Even if FEC retransmission did work it's a huge waste of bandwidth,
> since it just adds additional overhead that has to be unconditionally
> transmitted. This bandwidth is better used to send higher-quality
> frames.
>
> BUG=webrtc:5264
> R=stefan@webrtc.org
>
> Committed: https://crrev.com/25558ad819b4df41ba51537e26a77480ace1e525
> Cr-Commit-Position: refs/heads/master@{#11601}

TBR=stefan@webrtc.org,pbos@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:5264

Review URL: https://codereview.webrtc.org/1692783005

Cr-Commit-Position: refs/heads/master@{#11607}
2016-02-12 20:00:47 +00:00
Magnus Jedvert
5e7834e151 Android: Make VideoCapturer an interface for all VideoCapturers to implement
This CL factors out the interface that AndroidVideoCapturerJni is using to communicate with the Java counterpart. This interface is moved into VideoCapturer. The interface is not touched in this CL, and a follow-up CL is planned to simplify and improve it.

Another change is that the native part of VideoCapturer is created in PeerConnectionFactory.createVideoSource() instead of doing it immediately in the ctor.

BUG=webrtc:5519
R=perkj@webrtc.org

Review URL: https://codereview.webrtc.org/1696553003 .

Cr-Commit-Position: refs/heads/master@{#11606}
2016-02-12 16:05:36 +00:00
henrika
e78765bd4b Removes Nexus 5 from AEC and NS blacklists
BUG=b/27086464
R=tina.legrand@webrtc.org

Review URL: https://codereview.webrtc.org/1695713002 .

Cr-Commit-Position: refs/heads/master@{#11605}
2016-02-12 15:33:44 +00:00
Peter Boström
579e832a51 Fix race on VCM protection callback.
Removes protection-callback removal and makes ViEChannel outlive
ViEEncoder to not have races between BitrateAllocator and
VideoSendStream destruction.

BUG=
R=stefan@webrtc.org

Review URL: https://codereview.webrtc.org/1696693002 .

Cr-Commit-Position: refs/heads/master@{#11604}
2016-02-12 15:30:10 +00:00
Peter Boström
b72dada927 Remove Reset from conditionally-compiled decoders.
Reset is no longer called but removal of them was missed in a previous
commit.

BUG=webrtc:5475
TBR=hbos@webrtc.org,tkchin@webrtc.org

Review URL: https://codereview.webrtc.org/1690193003 .

Cr-Commit-Position: refs/heads/master@{#11603}
2016-02-12 14:57:03 +00:00
Peter Boström
c90e9b64d5 Remove no-op VideoDecoder::Reset implementation.
No longer used in Chromium and should be removable now.

BUG=webrtc:5475
TBR=mflodman@webrtc.org

Review URL: https://codereview.webrtc.org/1692543005 .

Cr-Commit-Position: refs/heads/master@{#11602}
2016-02-12 14:16:31 +00:00
Peter Boström
25558ad819 Don't send FEC for H.264 with NACK enabled.
The H.264 does not contain picture IDs and are not sufficient to
determine that a packet may be skipped. This causes retransmission
requests for FEC that are currently dropped by the sender (since they
should be redundant).

The receiver is then unable to continue without having the packet gap
filled (unlike VP8/VP9 which moves on since it has a consecutive stream
of picture IDs).

Even if FEC retransmission did work it's a huge waste of bandwidth,
since it just adds additional overhead that has to be unconditionally
transmitted. This bandwidth is better used to send higher-quality
frames.

BUG=webrtc:5264
R=stefan@webrtc.org

Review URL: https://codereview.webrtc.org/1687303002 .

Cr-Commit-Position: refs/heads/master@{#11601}
2016-02-12 14:08:39 +00:00
kjellander@webrtc.org
efce73e4ed Rename libjingle_media_unittest -> rtc_media_unittests
Landing this must be coordinated with updating the buildbots in
https://codereview.chromium.org/1681393004

R=pthatcher@webrtc.org
TBR=henrika@webrtc.org
BUG=webrtc:5420
NOTRY=True

Review URL: https://codereview.webrtc.org/1683163002 .

Cr-Commit-Position: refs/heads/master@{#11600}
2016-02-12 14:06:11 +00:00
kjellander@webrtc.org
e9de296de8 Add OWNERS file in webrtc/pc
BUG=webrtc:5419
NOTRY=True
R=tommi@webrtc.org

Review URL: https://codereview.webrtc.org/1693783002 .

Cr-Commit-Position: refs/heads/master@{#11599}
2016-02-12 13:26:58 +00:00
Per
040f68e360 Fix VideoCapturer::OnMessage override
Somehow this bug is now detected after landing https://codereview.webrtc.org/1689923002/
See https://build.chromium.org/p/chromium.webrtc.fyi/builders/Mac%20Builder/builds/9638/steps/compile/logs/stdio

TBR=pthatcher@webrtc.org
BUG=webrtc:5426

Review URL: https://codereview.webrtc.org/1692923002 .

Cr-Commit-Position: refs/heads/master@{#11598}
2016-02-12 13:00:25 +00:00
Per
a50924115e This reland https://codereview.webrtc.org/1655793003/ with the change that cricket::VideoCapturer::SignalVideoFrame is added back and used for frame forwarding. It is used in Chrome remoting.
BUG=webrtc:5426
R=pthatcher@webrtc.org
TBR=pthatcher@webrtc.org for moved channelmanager....

Review URL: https://codereview.webrtc.org/1689923002 .

Cr-Commit-Position: refs/heads/master@{#11597}
2016-02-12 12:31:08 +00:00
Peter Boström
59013bcafb Remove spammy GetRTPStatistics() log.
BUG=webrtc:5442
R=solenberg@webrtc.org

Review URL: https://codereview.webrtc.org/1695613003 .

Cr-Commit-Position: refs/heads/master@{#11596}
2016-02-12 10:35:18 +00:00
nisse
51542be8ce Introduce struct MediaConfig, with construction-time settings.
Pass it to MediaController constructor and down to WebRtcVideoEngine2
and WebRtcVoiceEngine.

Follows discussion on https://codereview.webrtc.org/1646253004/

TBR=pthatcher@webrtc.org
BUG=webrtc:5438

Review URL: https://codereview.webrtc.org/1670153003

Cr-Commit-Position: refs/heads/master@{#11595}
2016-02-12 10:27:12 +00:00
nisse
d73c99cf22 Initial cleanup of cricket::VideoFrame.
Deleted GetRotation (old alias for GetVideoRotation).
Deleted CopyToBuffer.
Deleted Sizeof.
Deleted Write.
Demote CopyToPlanes to protected status.

BUG=webrtc:5426

Committed: https://crrev.com/4d575b0d4276422bdf7b595d92c57c4f0f8ce0e9
Cr-Commit-Position: refs/heads/master@{#11564}

Review URL: https://codereview.webrtc.org/1688643003

Cr-Commit-Position: refs/heads/master@{#11594}
2016-02-12 09:01:15 +00:00
kjellander
65c7f67f09 Fix license headers in webrtc/pc
This was not done in https://codereview.webrtc.org/1691463002/
in order to preserve Git history when moving the files.

BUG=webrtc:5419
TBR=pthatcher@webrtc.org
NOTRY=True

Review URL: https://codereview.webrtc.org/1693773002

Cr-Commit-Position: refs/heads/master@{#11593}
2016-02-12 08:05:07 +00:00
kjellander@webrtc.org
9b8df25c73 Move talk/session/media -> webrtc/pc
The libjingle_p2p target is renamed to rtc_pc.
The libjingle_p2p_unittest test will be renamed in a
separate follow-up CL, to make it possible to run all
trybots successfully for this CL.

BUG=webrtc:5419
R=deadbeef@webrtc.org, pthatcher@webrtc.org, tommi@webrtc.org

Review URL: https://codereview.webrtc.org/1691463002 .

Cr-Commit-Position: refs/heads/master@{#11592}
2016-02-12 05:48:10 +00:00