ref: c592d18dfd6e9de18fd87c2fd11460a965f88ccb
parent: e7debe7351bdaede93e76f43bd4b730419a8be77
parent: 7cea82bdf84a5d4d7d82ea1659bd7770e98db679
author: ruil2 <[email protected]>
date: Mon Dec 1 05:31:47 EST 2014
Merge pull request #1573 from sijchen/after_review1 [Encoder] 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,