Set constraint set 0 and 1 flags for non-scalable as well

This allows decoders to know that a baseline stream doesn't
contain any of the features that aren't in the constrained
baseline subset.

Set the flags based on what profile we target.
This commit is contained in:
Martin Storsjö
2014-10-30 10:48:00 +02:00
parent 3abd54ca73
commit 53e2f67e80
6 changed files with 8468 additions and 8464 deletions

View File

@@ -945,9 +945,13 @@ static inline int32_t InitDqLayers (sWelsEncCtx** ppCtx) {
pParam->iMaxNumRefFrame,
iSpsId, pParam->bEnableFrameCroppingFlag, pParam->iRCMode != RC_OFF_MODE);
if (iDlayerCount > 1) {
if (pDlayerParam->uiProfileIdc == PRO_BASELINE) {
pSps->bConstraintSet0Flag = true;
}
if (pDlayerParam->uiProfileIdc <= PRO_MAIN) {
pSps->bConstraintSet1Flag = true;
}
if (iDlayerCount > 1) {
pSps->bConstraintSet2Flag = true;
}
} else {