Index: webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc |
diff --git a/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc b/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc |
index 8e10dffe8e88ed5e7100b9eb350338db7015a9a0..a0d1720e460f9c90231ca583f9d001df6e8cc826 100644 |
--- a/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc |
+++ b/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.cc |
@@ -82,6 +82,11 @@ int AudioEncoderG722::Max10MsFramesInAPacket() const { |
return num_10ms_frames_per_packet_; |
} |
+int AudioEncoderG722::GetTargetBitrate() const { |
+ // 4 bits/sample, 16000 samples/s/channel. |
+ return 64000 * NumChannels(); |
+} |
+ |
AudioEncoder::EncodedInfo AudioEncoderG722::EncodeInternal( |
uint32_t rtp_timestamp, |
const int16_t* audio, |