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

Issue 1324453002: NetEq: Fixing a corner case with depleted sync buffer (Closed)

Created:
5 years, 3 months ago by hlundin-webrtc
Modified:
5 years, 3 months ago
Reviewers:
minyue-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, kwiberg-webrtc, tlegrand-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

NetEq: Fixing a corner case with depleted sync buffer In some cases, the number of samples (per channel) in NetEq's sync buffer could fall below the allowed minimum (5 samples for narrowband, scaling for other rates). If the number of samples extracted from the buffer was smaller than the desired number, an error is returned. However, if the decoder returns fewer samples than expected, it could happen that the sync buffer level falls under the minimum, but enough samples are extracted. This triggered an assert. With this change, the minimum level of the sync buffer is always enforced. A test is implemented to trigger the problem. It made the assert fire without this fix, but it now passes. BUG=webrtc:4840 R=minyue@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/05f71fcb61df680ab0e0dab06ed6578ce062fa21

Patch Set 1 #

Total comments: 3

Patch Set 2 : Adding a DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -1 line) Patch
M webrtc/modules/audio_coding/main/acm2/audio_coding_module_unittest_oldapi.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/mock/mock_audio_decoder.h View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl.cc View 1 2 chunks +11 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc View 1 chunk +63 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
hlundin-webrtc
Minyue, Please, take a look at this CL. Thanks!
5 years, 3 months ago (2015-08-28 07:22:44 UTC) #2
minyue-webrtc
https://codereview.chromium.org/1324453002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc File webrtc/modules/audio_coding/neteq/neteq_impl.cc (right): https://codereview.chromium.org/1324453002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc#newcode845 webrtc/modules/audio_coding/neteq/neteq_impl.cc:845: missing_lookahead_samples); How do you know that next_index_ >= missing_lookahead_samples
5 years, 3 months ago (2015-08-30 21:50:27 UTC) #3
hlundin-webrtc
Adding a DCHECK
5 years, 3 months ago (2015-08-31 08:03:09 UTC) #4
hlundin-webrtc
https://codereview.webrtc.org/1324453002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc File webrtc/modules/audio_coding/neteq/neteq_impl.cc (right): https://codereview.webrtc.org/1324453002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc#newcode845 webrtc/modules/audio_coding/neteq/neteq_impl.cc:845: missing_lookahead_samples); On 2015/08/30 21:50:27, minyue-webrtc wrote: > How do ...
5 years, 3 months ago (2015-08-31 08:08:25 UTC) #5
minyue-webrtc
lgtm https://codereview.chromium.org/1324453002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc File webrtc/modules/audio_coding/neteq/neteq_impl.cc (right): https://codereview.chromium.org/1324453002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc#newcode845 webrtc/modules/audio_coding/neteq/neteq_impl.cc:845: missing_lookahead_samples); On 2015/08/31 08:08:25, hlundin-webrtc wrote: > On ...
5 years, 3 months ago (2015-09-01 07:36:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324453002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324453002/20001
5 years, 3 months ago (2015-09-01 07:36:16 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_x64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_x64_rel/builds/8980)
5 years, 3 months ago (2015-09-01 07:40:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324453002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324453002/20001
5 years, 3 months ago (2015-09-01 09:05:31 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android on tryserver.webrtc (JOB_TIMED_OUT, no build URL) mac_baremetal on ...
5 years, 3 months ago (2015-09-01 09:36:26 UTC) #14
hlundin-webrtc
5 years, 3 months ago (2015-09-01 09:52:12 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
05f71fcb61df680ab0e0dab06ed6578ce062fa21 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698