shithub: openh264

Download patch

ref: a8262dd9e606f99e3b02f8cbc7a03d3c5ea9c977
parent: c245cd2d685211129d45b9f0008b4e3eba801da9
parent: 853d2922dbaaa98f65d25f76206fc41e53bcc2cf
author: sijchen <[email protected]>
date: Wed Jan 28 11:48:23 EST 2015

Merge pull request #1767 from mstorsjo/fix-msvc-warnings

Use float literals instead of double literals when setting float values

--- a/test/encoder/EncUT_EncoderExt.cpp
+++ b/test/encoder/EncUT_EncoderExt.cpp
@@ -899,7 +899,7 @@
   sEncParamExt.iPicHeight = 640;
   sEncParamExt.iTargetBitrate = 573000;
   sEncParamExt.iRCMode = RC_BITRATE_MODE;
-  sEncParamExt.fMaxFrameRate = 28.248587;
+  sEncParamExt.fMaxFrameRate = 28.248587f;
 
   sEncParamExt.iTemporalLayerNum = 3;
   sEncParamExt.iSpatialLayerNum = 1;
@@ -912,7 +912,7 @@
   sEncParamExt.sSpatialLayers[0].uiLevelIdc = LEVEL_5_0;
   sEncParamExt.sSpatialLayers[0].iVideoWidth = 360;
   sEncParamExt.sSpatialLayers[0].iVideoHeight = 640;
-  sEncParamExt.sSpatialLayers[0].fFrameRate = 28.248587;
+  sEncParamExt.sSpatialLayers[0].fFrameRate = 28.248587f;
   sEncParamExt.sSpatialLayers[0].iSpatialBitrate = 573000;
   sEncParamExt.sSpatialLayers[0].iMaxSpatialBitrate = 895839855;
   sEncParamExt.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_FIXEDSLCNUM_SLICE;