Index: webrtc/api/android/jni/androidmediaencoder_jni.cc |
diff --git a/webrtc/api/android/jni/androidmediaencoder_jni.cc b/webrtc/api/android/jni/androidmediaencoder_jni.cc |
index 273fe9cfd54d5439d8fa43c95c861375779d0163..92b5aae65cf61f7630e9315e54c3c797044e82fd 100644 |
--- a/webrtc/api/android/jni/androidmediaencoder_jni.cc |
+++ b/webrtc/api/android/jni/androidmediaencoder_jni.cc |
@@ -112,8 +112,7 @@ |
int32_t Release() override; |
int32_t SetChannelParameters(uint32_t /* packet_loss */, |
int64_t /* rtt */) override; |
- int32_t SetRateAllocation(const webrtc::BitrateAllocation& rate_allocation, |
- uint32_t frame_rate) override; |
+ int32_t SetRates(uint32_t new_bit_rate, uint32_t frame_rate) override; |
// rtc::MessageHandler implementation. |
void OnMessage(rtc::Message* msg) override; |
@@ -466,12 +465,11 @@ |
return WEBRTC_VIDEO_CODEC_OK; |
} |
-int32_t MediaCodecVideoEncoder::SetRateAllocation( |
- const webrtc::BitrateAllocation& rate_allocation, |
- uint32_t frame_rate) { |
+int32_t MediaCodecVideoEncoder::SetRates(uint32_t new_bit_rate, |
+ uint32_t frame_rate) { |
return codec_thread_->Invoke<int32_t>( |
RTC_FROM_HERE, Bind(&MediaCodecVideoEncoder::SetRatesOnCodecThread, this, |
- rate_allocation.get_sum_kbps(), frame_rate)); |
+ new_bit_rate, frame_rate)); |
} |
void MediaCodecVideoEncoder::OnMessage(rtc::Message* msg) { |