History

reset encoder when profile/level change

Karina committed 9 years ago

Commit 913f1741 parent 8b462d61 file · +8 −0Browse 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+8−0
@@ -4351,6 +4351,14 @@ int32_t WelsEncoderParamAdjust (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pNewPa · 4350 unmodified lines
43514351 bNeedReset = true;
43524352 break;
43534353 }
4354+ if (pOldParam->sSpatialLayers[iIndexD].uiProfileIdc !=
4355+ pNewParam->sSpatialLayers[iIndexD].uiProfileIdc
4356+ ||
4357+ pOldParam->sSpatialLayers[iIndexD].uiLevelIdc !=
4358+ pNewParam->sSpatialLayers[iIndexD].uiLevelIdc) {
4359+ bNeedReset = true;
4360+ break;
4361+ }
43544362
43554363 // check frame rate
43564364 // we can not check whether corresponding fFrameRate is equal or not,

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