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

Issue 1334303005: Returning correct duration estimate on Opus DTX packets. (Closed)

Created:
5 years, 3 months ago by minyue-webrtc
Modified:
5 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, hlundin-webrtc, 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

Returning correct duration estimate on Opus DTX packets. Bug 4985 revealed two flaws 1. Opus duration estimate did not return correct length for DTX packets, 2. NetEq DoCodecInternalCng did not assign enough buffer. P.S. Generalizing problem 1, current NetEq decode function checks memory size by calling the duration estimate function. This is not ideal. A better way is to let codec's decode function to receive buffer size and return failure if it is not enough. This can be made in a separate CL. BUG=webrtc:4985 R=henrik.lundin@webrtc.org Committed: https://crrev.com/6d92bf59f3f8c0ce8ad445c11aaaf955eae752cc Cr-Commit-Position: refs/heads/master@{#10031}

Patch Set 1 #

Total comments: 9

Patch Set 2 : small comments fixed #

Patch Set 3 : move codec internal cng to decode #

Patch Set 4 : adding Neteq test #

Total comments: 14

Patch Set 5 : rebasing on RTC_DCHECK #

Total comments: 2

Patch Set 6 : fixing a corner case #

Patch Set 7 : addressing comments and fixing an error #

Total comments: 6

Patch Set 8 : final polish #

Patch Set 9 : fixing a silly mistake in unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+343 lines, -30 lines) Patch
M webrtc/modules/audio_coding/codecs/audio_decoder.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/interface/opus_interface.h View 1 chunk +14 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/opus_interface.c View 1 2 chunks +15 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl.h View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl.cc View 1 2 3 4 5 6 7 6 chunks +56 lines, -23 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +242 lines, -1 line 0 comments Download

Messages

Total messages: 30 (10 generated)
minyue-webrtc
Hi Tina and Henrik, Please take a look at this fix. Henrik, would you suggest ...
5 years, 3 months ago (2015-09-15 12:27:11 UTC) #2
hlundin-webrtc
Good. Some comments. I'll think some more about testing. https://codereview.webrtc.org/1334303005/diff/1/webrtc/modules/audio_coding/codecs/opus/opus_interface.c File webrtc/modules/audio_coding/codecs/opus/opus_interface.c (right): https://codereview.webrtc.org/1334303005/diff/1/webrtc/modules/audio_coding/codecs/opus/opus_interface.c#newcode363 webrtc/modules/audio_coding/codecs/opus/opus_interface.c:363: ...
5 years, 3 months ago (2015-09-15 13:05:09 UTC) #3
minyue-webrtc
I fixed small comments and added a question https://codereview.webrtc.org/1334303005/diff/1/webrtc/modules/audio_coding/codecs/opus/opus_interface.c File webrtc/modules/audio_coding/codecs/opus/opus_interface.c (right): https://codereview.webrtc.org/1334303005/diff/1/webrtc/modules/audio_coding/codecs/opus/opus_interface.c#newcode386 webrtc/modules/audio_coding/codecs/opus/opus_interface.c:386: int ...
5 years, 3 months ago (2015-09-16 08:05:31 UTC) #4
minyue-webrtc
I did a bigger change, and tested with voe_cmd_test. See if you like it, some ...
5 years, 3 months ago (2015-09-16 09:06:54 UTC) #5
minyue-webrtc
On 2015/09/16 09:06:54, minyue-webrtc wrote: > I did a bigger change, and tested with voe_cmd_test. ...
5 years, 3 months ago (2015-09-16 09:31:52 UTC) #6
minyue-webrtc
I added NetEq tests, for which I found another flaw, i.e., if Codec CNG gives ...
5 years, 3 months ago (2015-09-17 09:33:06 UTC) #7
minyue-webrtc
On 2015/09/17 09:33:06, minyue-webrtc wrote: > I added NetEq tests, for which I found another ...
5 years, 3 months ago (2015-09-17 10:52:32 UTC) #8
hlundin-webrtc
Just a few minor comments, then lgtm. https://codereview.webrtc.org/1334303005/diff/60001/webrtc/modules/audio_coding/neteq/neteq_impl.cc File webrtc/modules/audio_coding/neteq/neteq_impl.cc (right): https://codereview.webrtc.org/1334303005/diff/60001/webrtc/modules/audio_coding/neteq/neteq_impl.cc#newcode1279 webrtc/modules/audio_coding/neteq/neteq_impl.cc:1279: int NetEqImpl::DecodeCng(AudioDecoder* ...
5 years, 3 months ago (2015-09-17 14:21:30 UTC) #11
minyue-webrtc
On 2015/09/17 14:21:30, hlundin-webrtc wrote: > Just a few minor comments, then lgtm. > > ...
5 years, 3 months ago (2015-09-17 14:26:12 UTC) #12
minyue-webrtc
Some changes are made. you may take another look. https://codereview.webrtc.org/1334303005/diff/60001/webrtc/modules/audio_coding/neteq/neteq_impl.cc File webrtc/modules/audio_coding/neteq/neteq_impl.cc (right): https://codereview.webrtc.org/1334303005/diff/60001/webrtc/modules/audio_coding/neteq/neteq_impl.cc#newcode1279 webrtc/modules/audio_coding/neteq/neteq_impl.cc:1279: ...
5 years, 3 months ago (2015-09-18 13:41:17 UTC) #14
minyue-webrtc
On 2015/09/18 13:41:17, minyue-webrtc wrote: > Some changes are made. you may take another look. ...
5 years, 3 months ago (2015-09-22 13:20:06 UTC) #15
minyue-webrtc
one error found in the first version, see the latest patch set
5 years, 3 months ago (2015-09-22 13:21:07 UTC) #16
hlundin-webrtc
Still some nits, but still lgtm once those are fixed. https://codereview.webrtc.org/1334303005/diff/170001/webrtc/modules/audio_coding/neteq/neteq_impl.cc File webrtc/modules/audio_coding/neteq/neteq_impl.cc (right): https://codereview.webrtc.org/1334303005/diff/170001/webrtc/modules/audio_coding/neteq/neteq_impl.cc#newcode1281 ...
5 years, 3 months ago (2015-09-23 08:55:22 UTC) #17
minyue-webrtc
Thanks. Final comments addressed. https://codereview.webrtc.org/1334303005/diff/80001/webrtc/modules/audio_coding/neteq/neteq_impl.cc File webrtc/modules/audio_coding/neteq/neteq_impl.cc (right): https://codereview.webrtc.org/1334303005/diff/80001/webrtc/modules/audio_coding/neteq/neteq_impl.cc#newcode1680 webrtc/modules/audio_coding/neteq/neteq_impl.cc:1680: assert(normal_.get()); On 2015/09/17 14:21:30, hlundin-webrtc ...
5 years, 3 months ago (2015-09-23 09:37:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1334303005/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1334303005/190001
5 years, 3 months ago (2015-09-23 09:38:01 UTC) #21
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/9382)
5 years, 3 months ago (2015-09-23 09:55:28 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1334303005/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1334303005/210001
5 years, 3 months ago (2015-09-23 11:17:58 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_dbg on ...
5 years, 3 months ago (2015-09-23 13:18:10 UTC) #28
minyue-webrtc
Committed patchset #9 (id:210001) manually as 6d92bf59f3f8c0ce8ad445c11aaaf955eae752cc (presubmit successful).
5 years, 3 months ago (2015-09-23 13:21:00 UTC) #29
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 13:21:11 UTC) #30
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/6d92bf59f3f8c0ce8ad445c11aaaf955eae752cc
Cr-Commit-Position: refs/heads/master@{#10031}

Powered by Google App Engine
This is Rietveld 408576698