shithub: openh264

Download patch

ref: c36b0a6c1240650283631905151231022265b336
parent: 5542dda121cb2c8da2eda4833cf6316964701ce7
parent: 3f290e7ff7f83d51ea0760aa0da48e39ad75fea3
author: guangwei <GuangweiWang@users.noreply.github.com>
date: Thu Jan 25 11:25:03 EST 2018

Merge pull request #2910 from mstorsjo/fix-msvc-pow

Fix errors and warnings when building with msvc and for android with stlport

--- a/test/api/encode_options_test.cpp
+++ b/test/api/encode_options_test.cpp
@@ -2302,7 +2302,7 @@
       if ( (iStepIdx < 3) && (iFrameNum == ((iTotalFrame / 3) * (iStepIdx + 1)))) {
         sParam.iTemporalLayerNum = originalTemporalLayerNum * iSteps[iStepIdx];
         sParam.iTargetBitrate = sParam.sSpatialLayers[0].iSpatialBitrate = originalBR * iSteps[iStepIdx];
-        sParam.fMaxFrameRate = sParam.sSpatialLayers[0].fFrameRate = originalFR * pow (2, iSteps[iStepIdx]);
+        sParam.fMaxFrameRate = sParam.sSpatialLayers[0].fFrameRate = originalFR * pow (2.0f, iSteps[iStepIdx]);
         encoder_->SetOption (ENCODER_OPTION_SVC_ENCODE_PARAM_EXT, &sParam);
 
         bSetOption = true;