Fix an ambiguous call to pow() error.

Switch to powf() and explicitly define the second parameter as float.
Review URL: http://webrtc-codereview.appspot.com/89006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@269 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
ajm@google.com 2011-07-28 18:43:18 +00:00
parent af61f6d4d4
commit b0d9f3e6a3

View File

@ -340,7 +340,7 @@ VCMFecMethod::ProtectionFactor(const VCMProtectionParameters* parameters)
// resolnFac: This parameter will generally increase/decrease the FEC rate
// (for fixed bitRate and packetLoss) based on system size.
// Use a smaller exponent (< 1) to control/soften system size effect.
const float resolnFac = 1.0 / pow(spatialSizeToRef, 0.3);
const float resolnFac = 1.0 / powf(spatialSizeToRef, 0.3f);
const float bitRate = parameters->bitRate;
const float frameRate = parameters->frameRate;