shithub: openh264

Download patch

ref: e8b68d2460b8c9122c0c711ee06b4c18feefffd6
parent: ac08cc4b2fcd087c9d56bd89a8092d582a9433fa
author: huili2 <[email protected]>
date: Mon Jan 5 18:07:17 EST 2015

bug fix for parseonly for complete frame judge: reset total_mb if correct.

--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -1801,6 +1801,7 @@
         memcpy (pDstBuf, pNalBs, iNalLen);
         pDstBuf += iNalLen;
       }
+      pCtx->iTotalNumMbRec = 0;
     } else { //error
       pCtx->pParserBsInfo->uiOutBsTimeStamp = 0;
       pCtx->pParserBsInfo->iNalNum = 0;