Fix to windows build from commit 1914.

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1916 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
marpan@webrtc.org 2012-03-20 22:13:24 +00:00
parent e0d6fa4c66
commit 3fe3252cb3

View File

@ -395,8 +395,9 @@ void VCMQmResolution::ComputeRatesForSelection() {
avg_incoming_framerate_ = kWeightRate * avg_incoming_framerate_ +
(1.0 - kWeightRate) * incoming_framerate_;
// Use base layer frame rate for temporal layers: this will favor spatial.
framerate_level_ = FrameRateLevel(avg_incoming_framerate_ /
pow(2, num_layers_ - 1));
assert(num_layers_ > 0);
framerate_level_ = FrameRateLevel(
avg_incoming_framerate_ / static_cast<float>(1 << (num_layers_ - 1)));
}
void VCMQmResolution::ComputeEncoderState() {