ref: 880bf2d621992a66724b603d1792c1a902c759f1
parent: 1d3725030146d842447894c48a46940d710f9c0f
author: ruil2 <[email protected]>
date: Thu Sep 18 08:12:15 EDT 2014
set timestamp for each input frame to preparing for scc rate control
--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -805,10 +805,10 @@
break;
// To encoder this frame
iStart = WelsTime();
+ pSrcPic->uiTimeStamp = WELS_ROUND (iFrameIdx * (1000 / sSvcParam.fMaxFrameRate));
int iEncFrames = pPtrEnc->EncodeFrame (pSrcPic, &sFbi);
iTotal += WelsTime() - iStart;
- // fixed issue in case dismatch source picture introduced by frame skipped, 1/12/2010
if (videoFrameTypeSkip == sFbi.eFrameType) {
continue;
}