shithub: openh264

Download patch

ref: d2d4ab8c67cacfd0ce2c9a6dada5024c1d207388
parent: 65dcd57c1b91d260cd1520821263b0ded8461547
parent: dc86cfe5d802086b71f06ca09c6837f93f585165
author: HaiboZhu <haibozhu@cisco.com>
date: Mon Dec 29 12:17:25 EST 2014

Merge pull request #1680 from dongzha/SpeedupDecoding

speedup decoding

--- a/codec/decoder/core/src/decode_slice.cpp
+++ b/codec/decoder/core/src/decode_slice.cpp
@@ -1479,8 +1479,6 @@
     uiCbpL = pCurLayer->pCbp[iMbXy] & 15;
   }
 
-  memset (pCurLayer->pScaledTCoeff[iMbXy], 0, MB_COEFF_LIST_SIZE * sizeof (int16_t));
-
   ST32A4 (&pNzc[0], 0);
   ST32A4 (&pNzc[4], 0);
   ST32A4 (&pNzc[8], 0);
@@ -1495,7 +1493,7 @@
 
   if (pCurLayer->pCbp[iMbXy] || MB_TYPE_INTRA16x16 == pCurLayer->pMbType[iMbXy]) {
     int32_t iQpDelta, iId8x8, iId4x4;
-
+    memset (pCurLayer->pScaledTCoeff[iMbXy], 0, MB_COEFF_LIST_SIZE * sizeof (int16_t));
     WELS_READ_VERIFY (BsGetSe (pBs, &iCode)); //mb_qp_delta
     iQpDelta = iCode;