shithub: openh264

Download patch

ref: f5b9d920ffb1e0183408223817eb7b6927e940f4
parent: 64fa8a6b60ec740bd063243f3addd1da86738510
parent: 880bf2d621992a66724b603d1792c1a902c759f1
author: huili2 <huili2@cisco.com>
date: Thu Sep 18 10:46:28 EDT 2014

Merge pull request #1369 from ruil2/console

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;
     }