ref: 8b7be9f3bcff71e785ec54478a2ec4adf23fbbf2
parent: 8de54078d73e160a877d8661f275dbc105a893ab
author: Martin Storsjö <martin@martin.st>
date: Tue Dec 23 18:17:55 EST 2014
Initialize a local variable This fixes warnings with GCC about a variable that may be used uninitialized (if iResProperty was an incorrect value).
--- a/codec/decoder/core/src/parse_mb_syn_cabac.cpp
+++ b/codec/decoder/core/src/parse_mb_syn_cabac.cpp
@@ -825,7 +825,7 @@
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 iMbResProperty;
+ int32_t iMbResProperty = 0;
GetMbResProperty (&iMbResProperty, &iResProperty, false);
const uint16_t* pDeQuantMul = (pCtx->bUseScalingList) ? pCtx->pDequant_coeff4x4[iMbResProperty][uiQp] :
g_kuiDequantCoeff[uiQp];