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

Issue 2307493002: NetEq: Flush and reset if the speech and cng sample rates mismatch (Closed)

Created:
4 years, 3 months ago by hlundin-webrtc
Modified:
4 years, 3 months ago
Reviewers:
minyue-webrtc
CC:
webrtc-reviews_webrtc.org, kwiberg-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

NetEq: Flush and reset if the speech and cng sample rates mismatch If a CNG packet is received first, followed by a speech packet with another sample rate, NetEq should treat this as a change of codec, flush out the CNG packet and reset the sample rate to that of the speech packet. BUG=webrtc:5447 NOTRY=True Committed: https://crrev.com/067d855291f85a83ee914f4432cca311aaa816e2 Cr-Commit-Position: refs/heads/master@{#14032}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updates after review #

Total comments: 6

Patch Set 3 : Changing names of constants #

Patch Set 4 : Changing names again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -3 lines) Patch
M webrtc/modules/audio_coding/neteq/packet_buffer.cc View 1 3 chunks +18 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc View 1 2 3 1 chunk +61 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
hlundin-webrtc
Minyue, please take a look. Thanks!
4 years, 3 months ago (2016-09-01 06:53:32 UTC) #2
minyue-webrtc
Thanks! This looks generally good % comment. BTW, would it be better to add a ...
4 years, 3 months ago (2016-09-01 09:35:32 UTC) #3
hlundin-webrtc
Updated and added a unit test. PTAL again. https://codereview.webrtc.org/2307493002/diff/1/webrtc/modules/audio_coding/neteq/packet_buffer.cc File webrtc/modules/audio_coding/neteq/packet_buffer.cc (right): https://codereview.webrtc.org/2307493002/diff/1/webrtc/modules/audio_coding/neteq/packet_buffer.cc#newcode41 webrtc/modules/audio_coding/neteq/packet_buffer.cc:41: // ...
4 years, 3 months ago (2016-09-01 10:31:10 UTC) #4
minyue-webrtc
lgtm https://codereview.webrtc.org/2307493002/diff/20001/webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc File webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc (right): https://codereview.webrtc.org/2307493002/diff/20001/webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc#newcode400 webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc:400: const DecoderDatabase::DecoderInfo infoCng(NetEqDecoder::kDecoderCNGnb, "", info_cng https://codereview.webrtc.org/2307493002/diff/20001/webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc#newcode407 webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc:407: .WillRepeatedly(Return(&infoSpeech)); ...
4 years, 3 months ago (2016-09-01 15:59:46 UTC) #5
hlundin-webrtc
https://codereview.webrtc.org/2307493002/diff/20001/webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc File webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc (right): https://codereview.webrtc.org/2307493002/diff/20001/webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc#newcode400 webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc:400: const DecoderDatabase::DecoderInfo infoCng(NetEqDecoder::kDecoderCNGnb, "", On 2016/09/01 15:59:45, minyue-webrtc wrote: ...
4 years, 3 months ago (2016-09-01 16:11:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2307493002/40001
4 years, 3 months ago (2016-09-01 16:11:41 UTC) #9
hlundin-webrtc
I was wrong. Changing again. https://codereview.webrtc.org/2307493002/diff/20001/webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc File webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc (right): https://codereview.webrtc.org/2307493002/diff/20001/webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc#newcode400 webrtc/modules/audio_coding/neteq/packet_buffer_unittest.cc:400: const DecoderDatabase::DecoderInfo infoCng(NetEqDecoder::kDecoderCNGnb, "", ...
4 years, 3 months ago (2016-09-01 16:15:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2307493002/60001
4 years, 3 months ago (2016-09-02 06:11:51 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-02 06:19:09 UTC) #17
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 06:19:18 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/067d855291f85a83ee914f4432cca311aaa816e2
Cr-Commit-Position: refs/heads/master@{#14032}

Powered by Google App Engine
This is Rietveld 408576698