ref: 7cea82bdf84a5d4d7d82ea1659bd7770e98db679
parent: e7debe7351bdaede93e76f43bd4b730419a8be77
author: Sijia Chen <[email protected]>
date: Fri Nov 28 11:15:49 EST 2014
remove a too-tight checking of bit rate
--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -90,16 +90,13 @@
if (pLayerParam->iMaxSpatialBitrate > iLevelMaxBitrate) {
ELevelIdc iCurLevel = pLayerParam->uiLevelIdc;
if (WelsAdjustLevel (pLayerParam)) {
- WelsLog (pLogCtx, WELS_LOG_ERROR,
- "MaxSpatialBitrate (%d) is larger that the limitation LEVEL_5_2, considering it as error setting",
- pLayerParam->iMaxSpatialBitrate);
- return ENC_RETURN_UNSUPPORTED_PARA;
- } else {
WelsLog (pLogCtx, WELS_LOG_WARNING,
+ "MaxSpatialBitrate (%d) is larger that the limitation LEVEL_5_2, the setting will be invalid",
+ pLayerParam->iMaxSpatialBitrate);
+ }
+ WelsLog (pLogCtx, WELS_LOG_INFO,
"Level is changed from (%d) to (%d) according to the maxbitrate",
iCurLevel, pLayerParam->uiLevelIdc);
- }
-
}
if (pLayerParam->iMaxSpatialBitrate < pLayerParam->iSpatialBitrate) {
WelsLog (pLogCtx, WELS_LOG_ERROR,