Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all
Unified · Split
| @@ -90,16 +90,13 @@ int32_t WelsBitRateVerification (SLogContext* pLogCtx, SSpatialLayerConfig* pLay · 89 unmodified lines | ||
| 90 | 90 | if (pLayerParam->iMaxSpatialBitrate > iLevelMaxBitrate) { |
| 91 | 91 | ELevelIdc iCurLevel = pLayerParam->uiLevelIdc; |
| 92 | 92 | if (WelsAdjustLevel (pLayerParam)) { |
| 93 | − WelsLog (pLogCtx, WELS_LOG_ERROR, | |
| 94 | − "MaxSpatialBitrate (%d) is larger that the limitation LEVEL_5_2, considering it as error setting", | |
| 95 | − pLayerParam->iMaxSpatialBitrate); | |
| 96 | − return ENC_RETURN_UNSUPPORTED_PARA; | |
| 97 | − } else { | |
| 98 | 93 | WelsLog (pLogCtx, WELS_LOG_WARNING, |
| 94 | + "MaxSpatialBitrate (%d) is larger that the limitation LEVEL_5_2, the setting will be invalid", | |
| 95 | + pLayerParam->iMaxSpatialBitrate); | |
| 96 | + } | |
| 97 | + WelsLog (pLogCtx, WELS_LOG_INFO, | |
| 99 | 98 | "Level is changed from (%d) to (%d) according to the maxbitrate", |
| 100 | 99 | iCurLevel, pLayerParam->uiLevelIdc); |
| 101 | − } | |
| 102 | − | |
| 103 | 100 | } |
| 104 | 101 | if (pLayerParam->iMaxSpatialBitrate < pLayerParam->iSpatialBitrate) { |
| 105 | 102 | WelsLog (pLogCtx, WELS_LOG_ERROR, |