ref: b18e9059463464fa3a99aadea57dd2c3acbe65ac
parent: c13bfe6407252f64610b0c2c9aa0737054dcd71e
author: dong zhang <dongzha@cisco.com>
date: Wed Nov 19 11:03:34 EST 2014
Check and Fix some issue#1535
--- a/codec/processing/src/backgrounddetection/BackgroundDetection.cpp
+++ b/codec/processing/src/backgrounddetection/BackgroundDetection.cpp
@@ -340,7 +340,6 @@
int8_t* pVaaBackgroundMbFlag = (int8_t*)pBgdParam->pBackgroundMbFlag;
SBackgroundOU* pOUNeighbours[4];//0: left; 1: right; 2: top; 3: bottom
- pBackgroundOU = pBgdParam->pOU_array;
pOUNeighbours[2] = pBackgroundOU;//top OU
for (int32_t j = 0; j < iPicHeightInOU; j ++) {
int8_t* pRowSkipFlag = pVaaBackgroundMbFlag;
--- a/codec/processing/src/common/WelsFrameWork.cpp
+++ b/codec/processing/src/common/WelsFrameWork.cpp
@@ -91,9 +91,7 @@
uint32_t uiCPUFlag = WelsCPUFeatureDetect (&iCoreNum);
for (int32_t i = 0; i < MAX_STRATEGY_NUM; i++) {
- IStrategy* pStrategy = m_pStgChain[i];
- pStrategy = CreateStrategy (WelsStaticCast (EMethods, i + 1), uiCPUFlag);
- m_pStgChain[i] = pStrategy;
+ m_pStgChain[i] = CreateStrategy (WelsStaticCast (EMethods, i + 1), uiCPUFlag);
}
WelsMutexInit (&m_mutes);