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

Issue 1908623002: Avoiding overflow in cross correlation in NetEq. (Closed)

Created:
4 years, 8 months ago by minyue-webrtc
Modified:
4 years, 7 months ago
Reviewers:
hlundin-webrtc
CC:
webrtc-reviews_webrtc.org, kwiberg-webrtc, Andrew MacDonald, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, peah-webrtc, aluebs-webrtc, bjornv1
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Avoiding overflow in cross correlation in NetEq. BUG= Committed: https://crrev.com/3d09dfdbba5319c735b73b471ff69976292a7583 Cr-Commit-Position: refs/heads/master@{#12538}

Patch Set 1 : #

Total comments: 26

Patch Set 2 : on comments #

Total comments: 2

Patch Set 3 : expand new method across neteq #

Total comments: 14

Patch Set 4 : on comments and fixing unittests #

Patch Set 5 : clean up #

Patch Set 6 : turn off ubsan as it was #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -112 lines) Patch
M resources/audio_coding/neteq4_network_stats_android.dat.sha1 View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M resources/audio_coding/neteq4_opus_network_stats.dat.sha1 View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M resources/audio_coding/neteq4_opus_ref.pcm.sha1 View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M resources/audio_coding/neteq4_opus_ref_win_32.pcm.sha1 View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M resources/audio_coding/neteq4_opus_ref_win_64.pcm.sha1 View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M resources/audio_coding/neteq4_universal_ref.pcm.sha1 View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M resources/audio_coding/neteq4_universal_ref_android.pcm.sha1 View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M resources/audio_coding/neteq4_universal_ref_win_32.pcm.sha1 View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M resources/audio_coding/neteq4_universal_ref_win_64.pcm.sha1 View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webrtc/common_audio/signal_processing/cross_correlation.c View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/acm2/audio_coding_module_unittest_oldapi.cc View 1 2 3 2 chunks +20 lines, -20 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/background_noise.cc View 1 2 3 2 chunks +4 lines, -8 lines 0 comments Download
A webrtc/modules/audio_coding/neteq/cross_correlation.h View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/neteq/cross_correlation.cc View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/expand.h View 1 1 chunk +2 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/expand.cc View 1 2 3 8 chunks +10 lines, -34 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/merge.h View 1 2 2 chunks +4 lines, -6 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/merge.cc View 1 2 3 6 chunks +13 lines, -21 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/time_stretch.cc View 1 2 3 2 chunks +5 lines, -9 lines 0 comments Download

Messages

Total messages: 35 (14 generated)
minyue-webrtc
Hi Henrik, Please take a look before I fix the bit exactness test. https://codereview.webrtc.org/1908623002/diff/20001/webrtc/common_audio/signal_processing/cross_correlation.c File ...
4 years, 8 months ago (2016-04-20 17:58:59 UTC) #4
hlundin-webrtc
Nice. Please, see my comments. https://codereview.webrtc.org/1908623002/diff/20001/webrtc/common_audio/signal_processing/cross_correlation.c File webrtc/common_audio/signal_processing/cross_correlation.c (right): https://codereview.webrtc.org/1908623002/diff/20001/webrtc/common_audio/signal_processing/cross_correlation.c#newcode31 webrtc/common_audio/signal_processing/cross_correlation.c:31: assert((add >= 0 && ...
4 years, 8 months ago (2016-04-21 08:52:01 UTC) #5
minyue-webrtc
Hi Henrik, Thanks for the comments! I have addressed them. One thing to discuss with ...
4 years, 8 months ago (2016-04-21 11:06:50 UTC) #6
hlundin-webrtc
A few more comments. https://codereview.webrtc.org/1908623002/diff/20001/webrtc/common_audio/signal_processing/cross_correlation.c File webrtc/common_audio/signal_processing/cross_correlation.c (right): https://codereview.webrtc.org/1908623002/diff/20001/webrtc/common_audio/signal_processing/cross_correlation.c#newcode31 webrtc/common_audio/signal_processing/cross_correlation.c:31: assert((add >= 0 && corr ...
4 years, 8 months ago (2016-04-22 06:48:57 UTC) #7
minyue-webrtc
https://codereview.webrtc.org/1908623002/diff/20001/webrtc/modules/audio_coding/neteq/expand.cc File webrtc/modules/audio_coding/neteq/expand.cc (right): https://codereview.webrtc.org/1908623002/diff/20001/webrtc/modules/audio_coding/neteq/expand.cc#newcode31 webrtc/modules/audio_coding/neteq/expand.cc:31: // This function decides the overflow-protecting scaling and call ...
4 years, 8 months ago (2016-04-22 07:39:49 UTC) #8
hlundin-webrtc
https://codereview.webrtc.org/1908623002/diff/20001/webrtc/modules/audio_coding/neteq/expand.cc File webrtc/modules/audio_coding/neteq/expand.cc (right): https://codereview.webrtc.org/1908623002/diff/20001/webrtc/modules/audio_coding/neteq/expand.cc#newcode39 webrtc/modules/audio_coding/neteq/expand.cc:39: int cross_correlation_step) { On 2016/04/22 07:39:49, minyue-webrtc wrote: > ...
4 years, 8 months ago (2016-04-22 07:48:20 UTC) #9
minyue-webrtc
Hi Henrik, I made the new method a general tool and used it in neteq ...
4 years, 8 months ago (2016-04-22 13:58:30 UTC) #11
hlundin-webrtc
Very nice! Just a few small comments. https://codereview.webrtc.org/1908623002/diff/80001/webrtc/modules/audio_coding/neteq/cross_correlation.cc File webrtc/modules/audio_coding/neteq/cross_correlation.cc (right): https://codereview.webrtc.org/1908623002/diff/80001/webrtc/modules/audio_coding/neteq/cross_correlation.cc#newcode13 webrtc/modules/audio_coding/neteq/cross_correlation.cc:13: #include <assert.h> ...
4 years, 8 months ago (2016-04-25 07:53:58 UTC) #12
hlundin-webrtc
On 2016/04/25 07:53:58, hlundin-webrtc wrote: > Very nice! Just a few small comments. > > ...
4 years, 8 months ago (2016-04-25 07:55:53 UTC) #13
minyue-webrtc
Hi Henrik, Patch set 4 addressed your comment and fixed bit exactness tests. Patch set ...
4 years, 7 months ago (2016-04-27 10:38:04 UTC) #17
hlundin-webrtc
lgtm
4 years, 7 months ago (2016-04-27 14:14:32 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908623002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908623002/160001
4 years, 7 months ago (2016-04-27 14:27:33 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_ubsan_vptr on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_ubsan_vptr/builds/2100)
4 years, 7 months ago (2016-04-27 14:41:04 UTC) #22
minyue-webrtc
It turns out that I cannot turn ubsan_vptr off. It seems to have to do ...
4 years, 7 months ago (2016-04-27 15:27:16 UTC) #23
minyue-webrtc
On 2016/04/27 15:27:16, minyue-webrtc wrote: I mean I cannot turn ubsan_vptr on. > It turns ...
4 years, 7 months ago (2016-04-27 15:28:13 UTC) #24
minyue-webrtc
On 2016/04/27 15:28:13, minyue-webrtc wrote: > On 2016/04/27 15:27:16, minyue-webrtc wrote: > > I mean ...
4 years, 7 months ago (2016-04-27 19:35:27 UTC) #26
hlundin-webrtc
On 2016/04/27 19:35:27, minyue-webrtc wrote: > On 2016/04/27 15:28:13, minyue-webrtc wrote: > > On 2016/04/27 ...
4 years, 7 months ago (2016-04-27 21:01:14 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1908623002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1908623002/180001
4 years, 7 months ago (2016-04-27 21:07:36 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:180001)
4 years, 7 months ago (2016-04-27 22:06:15 UTC) #32
minyue-webrtc
A revert of this CL (patchset #6 id:180001) has been created in https://codereview.webrtc.org/1925053002/ by minyue@webrtc.org. ...
4 years, 7 months ago (2016-04-28 09:16:33 UTC) #33
commit-bot: I haz the power
4 years, 7 months ago (2016-05-01 22:01:03 UTC) #35
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3d09dfdbba5319c735b73b471ff69976292a7583
Cr-Commit-Position: refs/heads/master@{#12538}

Powered by Google App Engine
This is Rietveld 408576698