shithub: openh264

Download patch

ref: 25b723c4132f0cb5dcdb617b9517104913603585
parent: 8538b22f23b9c3e47548d841b8d6e94ccf7fb2cc
parent: ca96def4ff6debc1d7a578dc3a1db1d91b482d50
author: ruil2 <ruil2@cisco.com>
date: Wed Sep 17 11:19:40 EDT 2014

Merge pull request #1366 from lyao2/refine_frameskip2

fix skipframe count error

--- a/codec/encoder/core/src/ratectl.cpp
+++ b/codec/encoder/core/src/ratectl.cpp
@@ -731,6 +731,8 @@
   pWelsSvcRc->bSkipFlag = false;
   if (pWelsSvcRc->iBufferFullnessSkip > pWelsSvcRc->iBufferSizeSkip) {
     pWelsSvcRc->bSkipFlag = true;
+    pWelsSvcRc->iSkipFrameNum++;
+    pWelsSvcRc->iSkipFrameInVGop++;
     pWelsSvcRc->iBufferFullnessSkip -= iSentBits;
     pWelsSvcRc->iBufferFullnessSkip = WELS_MAX (pWelsSvcRc->iBufferFullnessSkip, 0);
   }