shithub: openh264

Download patch

ref: e6b9aa05e6f30e40e085e1d1c5bc55405852b703
parent: 73cccfda3e32f08365d0a00f575ab14bec5bc9ad
author: huili2 <huili2@cisco.com>
date: Wed Apr 26 12:39:19 EDT 2017

tc0 update in lf bugfix

--- a/codec/decoder/core/src/deblocking.cpp
+++ b/codec/decoder/core/src/deblocking.cpp
@@ -787,6 +787,7 @@
     GET_ALPHA_BETA_FROM_QP (pFilter->iChromaQP[0], pFilter->iSliceAlphaC0Offset, pFilter->iSliceBetaOffset, iIndexA, iAlpha,
                             iBeta);
     if (iAlpha | iBeta) {
+      TC0_TBL_LOOKUP(iTc, iIndexA, uiBSx4, 1);
       pFilter->pLoopf->pfChromaDeblockingLT4Ver (&pDestCb[ (2 << 1)*iLineSize], &pDestCr[ (2 << 1)*iLineSize], iLineSize,
           iAlpha, iBeta, iTc);
     }
@@ -796,6 +797,7 @@
       GET_ALPHA_BETA_FROM_QP (pFilter->iChromaQP[i], pFilter->iSliceAlphaC0Offset, pFilter->iSliceBetaOffset, iIndexA, iAlpha,
                               iBeta);
       if (iAlpha | iBeta) {
+        TC0_TBL_LOOKUP(iTc, iIndexA, uiBSx4, 1);
         uint8_t* pDestCbCr = (i == 0) ? &pDestCb[ (2 << 1) * iLineSize] : &pDestCr[ (2 << 1) * iLineSize];
         pFilter->pLoopf->pfChromaDeblockingLT4Ver2 (pDestCbCr, iLineSize,
             iAlpha, iBeta, iTc);