shithub: openh264

Download patch

ref: c27c02bc0abc5cf0d975d715c848db1c189cea1e
parent: 4f8edb946dad907c3a4c318022f565f606b0a4c5
parent: 793c80df8bc77d8f526b650a797e3b80f0eb16e1
author: HaiboZhu <haibozhu@cisco.com>
date: Tue Apr 29 10:50:22 EDT 2014

Merge pull request #764 from dongzha/Deblock

Remove useless code

--- a/codec/decoder/core/src/decode_slice.cpp
+++ b/codec/decoder/core/src/decode_slice.cpp
@@ -1056,11 +1056,9 @@
 
 void SetNonZeroCount_c (int16_t* pBlock, int8_t* pNonZeroCount) {
   int32_t i;
-  int32_t iIndex;
 
   for (i = 0; i < 24; i++) {
-    iIndex = g_kuiMbNonZeroCountIdx[i];
-    pNonZeroCount[iIndex] = !!pNonZeroCount[iIndex];
+    pNonZeroCount[i] = !!pNonZeroCount[i];
   }
 }
 
--- a/codec/encoder/core/src/deblocking.cpp
+++ b/codec/encoder/core/src/deblocking.cpp
@@ -784,11 +784,9 @@
 
 void WelsNonZeroCount_c (int8_t* pNonZeroCount) {
   int32_t i;
-  int32_t iIndex;
 
   for (i = 0; i < 24; i++) {
-    iIndex = g_kuiMbCountScan4Idx[i];
-    pNonZeroCount[iIndex] = !!pNonZeroCount[iIndex];
+    pNonZeroCount[i] = !!pNonZeroCount[i];
   }
 }
 void WelsBlockFuncInit (PSetNoneZeroCountZeroFunc* pfSetNZCZero,  int32_t iCpu) {