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

Issue 2668693003: Change opus min bitrate. (Closed)

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

Description

Change opus min bitrate. BUG=webrtc:7087 Review-Url: https://codereview.webrtc.org/2668693003 Cr-Commit-Position: refs/heads/master@{#16383} Committed: https://chromium.googlesource.com/external/webrtc/+/54340d8e7569633f15c79a6687babdebcf9cc989

Patch Set 1 #

Patch Set 2 : Fix for AudioDecoderOpusTest.SetTargetBitrate #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -7 lines) Patch
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc View 1 chunk +5 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc View 6 chunks +50 lines, -4 lines 5 comments Download
M webrtc/modules/audio_coding/neteq/audio_decoder_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (19 generated)
michaelt
Hi minyue, Here the promised CL to change the min bit-rate for opus.
3 years, 10 months ago (2017-01-31 14:54:50 UTC) #3
minyue-webrtc
On 2017/01/31 14:54:50, michaelt wrote: > Hi minyue, > Here the promised CL to change ...
3 years, 10 months ago (2017-01-31 15:14:14 UTC) #5
ossu
Looks fine! Good to know what changes are coming up since I'm also touching that ...
3 years, 10 months ago (2017-01-31 15:21:20 UTC) #6
ossu
Oh, might as well lgtm so my name turns green. :)
3 years, 10 months ago (2017-01-31 15:21:57 UTC) #7
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/2668693003/20001
3 years, 10 months ago (2017-01-31 17:03:59 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/external/webrtc/+/54340d8e7569633f15c79a6687babdebcf9cc989
3 years, 10 months ago (2017-01-31 17:07:02 UTC) #21
hlundin-webrtc
https://codereview.webrtc.org/2668693003/diff/20001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc (right): https://codereview.webrtc.org/2668693003/diff/20001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc#newcode128 webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc:128: RTC_DCHECK(speech_data->Init( This is wrong for two reasons: 1. It ...
3 years, 9 months ago (2017-03-03 14:32:59 UTC) #23
minyue-webrtc
https://codereview.webrtc.org/2668693003/diff/20001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc (right): https://codereview.webrtc.org/2668693003/diff/20001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc#newcode128 webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc:128: RTC_DCHECK(speech_data->Init( On 2017/03/03 14:32:59, hlundin-webrtc wrote: > This is ...
3 years, 9 months ago (2017-03-03 14:40:41 UTC) #26
michaelt
https://codereview.webrtc.org/2668693003/diff/20001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc (right): https://codereview.webrtc.org/2668693003/diff/20001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc#newcode128 webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc:128: RTC_DCHECK(speech_data->Init( In general i like the idea of separation ...
3 years, 9 months ago (2017-03-06 10:09:52 UTC) #27
hlundin-webrtc
https://codereview.webrtc.org/2668693003/diff/20001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc (right): https://codereview.webrtc.org/2668693003/diff/20001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc#newcode128 webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc:128: RTC_DCHECK(speech_data->Init( On 2017/03/06 10:09:52, michaelt wrote: > In general ...
3 years, 9 months ago (2017-03-06 10:49:13 UTC) #29
michaelt
3 years, 9 months ago (2017-03-06 12:01:32 UTC) #30
Message was sent while issue was closed.
https://codereview.webrtc.org/2668693003/diff/20001/webrtc/modules/audio_codi...
File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc
(right):

https://codereview.webrtc.org/2668693003/diff/20001/webrtc/modules/audio_codi...
webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc:128:
RTC_DCHECK(speech_data->Init(
On 2017/03/06 10:49:13, hlundin-webrtc wrote:
> On 2017/03/06 10:09:52, michaelt wrote:
> > In general i like the idea of separation of test's and test setup (Open
files
> > ...) by using (D)CHECKs and use of EXPECT or ASSERT.
> > 
> > For situations like this one we have a additional problem. 
> > In this case we should use ASSERT, but we are not allowed to use ASSERT in
> > functions which are called by the test. 
> > 
> > So it seams best to me to just replace the RTC_DCHECK by a a RTC_CHECK.
> > 
> 
> The test still passes on the bots (Debug and Release alike) because they
always
> run with DCHECK_ALWAYS_ON set.
> 
> The reason I regularly dislike (D)CHECKs in tests is that the same binary runs
> many test cases, and if the (D)CHECK triggers, you get no results at all from
> the ones that did not have a chance to run yet.
> 
> The problem with ASSERT_* is that, due to how it is implemented, it can only
be
> used in void-returning functions. What you can do is have this method return
an
> empty result (nullptr) if init fails, and then let the test itself ASSERT_TRUE
> on that.

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698