shithub: openh264

Download patch

ref: ca96def4ff6debc1d7a578dc3a1db1d91b482d50
parent: f8d5f93b16b788f7326aa7f286601810571c9e78
author: lyao2 <lyao2@LYAO2-WS01.cisco.com>
date: Wed Sep 17 10:26:05 EDT 2014

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