Opus send rate overflows if over 65 kbps

The member holding the send rate for Opus had too low resolution for rates above ~65 kbps.

I've added a test that checks if the average rate in a Opus test is in the right range. The test fails before my fix, and now passes.

BUG=3267
R=henrik.lundin@webrtc.org, kwiberg@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/12579004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6344 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
tina.legrand@webrtc.org
2014-06-05 13:42:51 +00:00
parent b51d3ea593
commit 65d61c3924
2 changed files with 18 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ class ACMOpus : public ACMGenericCodec {
WebRtcOpusEncInst* encoder_inst_ptr_;
uint16_t sample_freq_;
uint16_t bitrate_;
int32_t bitrate_;
int channels_;
bool fec_enabled_;