Fix the improper slice mmco setting

This commit is contained in:
sijchen 2014-05-09 10:48:09 +08:00
parent f6293153c8
commit 5de9f41f5a

View File

@ -482,9 +482,6 @@ void WelsMarkPic (void* pEncCtx) {
memset (pRefPicMark, 0, sizeof (SRefPicMarking)); memset (pRefPicMark, 0, sizeof (SRefPicMarking));
if (iSliceIdx != kiCountSliceNum - 1) { //marking syntax only exist in last slice head
continue;
}
if (pCtx->pSvcParam->bEnableLongTermReference && pLtr->bLTRMarkingFlag) { if (pCtx->pSvcParam->bEnableLongTermReference && pLtr->bLTRMarkingFlag) {
if (pLtr->iLTRMarkMode == LTR_DIRECT_MARK) { if (pLtr->iLTRMarkMode == LTR_DIRECT_MARK) {
pRefPicMark->SMmcoRef[pRefPicMark->uiMmcoCount].iMaxLongTermFrameIdx = LONG_TERM_REF_NUM - 1; pRefPicMark->SMmcoRef[pRefPicMark->uiMmcoCount].iMaxLongTermFrameIdx = LONG_TERM_REF_NUM - 1;