Merge pull request #1102 from ruil2/rc_fix_1

add skip frame processing for screen content
This commit is contained in:
huili2 2014-07-08 16:14:01 +08:00
commit c228c51423

View File

@ -325,10 +325,14 @@ EVideoFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum
} else {
iFrameType = videoFrameTypeP;
}
if (videoFrameTypeIDR == iFrameType) {
if (videoFrameTypeP == iFrameType && pEncCtx->iSkipFrameFlag > 0) {
-- pEncCtx->iSkipFrameFlag;
iFrameType = videoFrameTypeSkip;
} else if (videoFrameTypeIDR == iFrameType) {
pEncCtx->iCodingIndex = 0;
pEncCtx->bCurFrameMarkedAsSceneLtr = true;
}
} else {
// perform scene change detection
if ((!pSvcParam->bEnableSceneChangeDetect) || pEncCtx->pVaa->bIdrPeriodFlag ||