History

modify trace info for LEVEL_UNKNOWN

ruil2 committed 11 years ago

Commit 00a2dc21 parent 0babd8d1 file · +4 −1Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+4−1
@@ -126,7 +126,10 @@ void CheckProfileSetting (SLogContext* pLogCtx, SWelsSvcCodingParam* pParam, int · 125 unmodified lines
126126 void CheckLevelSetting (SLogContext* pLogCtx, SWelsSvcCodingParam* pParam, int32_t iLayer, ELevelIdc uiLevelIdc) {
127127 SSpatialLayerConfig* pLayerInfo = &pParam->sSpatialLayers[iLayer];
128128 pLayerInfo->uiLevelIdc = uiLevelIdc;
129− if ((uiLevelIdc < LEVEL_1_0) || (uiLevelIdc > LEVEL_5_2)) {
129+ if (uiLevelIdc == LEVEL_UNKNOWN) {
130+ pLayerInfo->uiLevelIdc = LEVEL_1_0;
131+ WelsLog (pLogCtx, WELS_LOG_INFO, "change LEVEL_UNKNOWN to LEVEL_1_0");
132+ } else if ((uiLevelIdc < LEVEL_1_0) || (uiLevelIdc > LEVEL_5_2)) {
130133 pLayerInfo->uiLevelIdc = LEVEL_1_0;
131134 WelsLog (pLogCtx, WELS_LOG_WARNING, "doesn't support level(%d) change to LEVEL_1_0", uiLevelIdc);
132135 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t