Initialize a local variable

This fixes warnings with GCC about a variable that may be used
uninitialized (if iResProperty was an incorrect value).
This commit is contained in:
Martin Storsjö 2014-12-23 23:17:55 +02:00
parent 8de54078d7
commit 8b7be9f3bc

View File

@ -825,7 +825,7 @@ int32_t ParseResidualBlockCabac (PWelsNeighAvail pNeighAvail, uint8_t* pNonZeroC
uint32_t uiCbpBit; uint32_t uiCbpBit;
int32_t pSignificantMap[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; int32_t pSignificantMap[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int32_t iMbResProperty; int32_t iMbResProperty = 0;
GetMbResProperty (&iMbResProperty, &iResProperty, false); GetMbResProperty (&iMbResProperty, &iResProperty, false);
const uint16_t* pDeQuantMul = (pCtx->bUseScalingList) ? pCtx->pDequant_coeff4x4[iMbResProperty][uiQp] : const uint16_t* pDeQuantMul = (pCtx->bUseScalingList) ? pCtx->pDequant_coeff4x4[iMbResProperty][uiQp] :
g_kuiDequantCoeff[uiQp]; g_kuiDequantCoeff[uiQp];