This fixes warnings with MSVC.
Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all
Unified · Split
| @@ -538,7 +538,7 @@ int32_t WelsEncoderApplyBitVaryRang(SLogContext* pLogCtx, SWelsSvcCodingParam* p · 537 unmodified lines | ||
| 538 | 538 | const int32_t iNumLayers = pParam->iSpatialLayerNum; |
| 539 | 539 | for (int32_t i = 0; i < iNumLayers; i++) { |
| 540 | 540 | pLayerParam = & (pParam->sSpatialLayers[i]); |
| 541 | − pLayerParam->iMaxSpatialBitrate = WELS_MIN(pLayerParam->iSpatialBitrate * (1+ iRang/100.0),pLayerParam->iMaxSpatialBitrate); | |
| 541 | + pLayerParam->iMaxSpatialBitrate = WELS_MIN((int) (pLayerParam->iSpatialBitrate * (1+ iRang/100.0)),pLayerParam->iMaxSpatialBitrate); | |
| 542 | 542 | if (WelsBitRateVerification (pLogCtx, pLayerParam, i) != ENC_RETURN_SUCCESS) |
| 543 | 543 | return ENC_RETURN_UNSUPPORTED_PARA; |
| 544 | 544 | WelsLog (pLogCtx, WELS_LOG_INFO, |