Remove a write-only variable

This fixes warnings with GCC about a variable that is set but
not used.
This commit is contained in:
Martin Storsjö 2014-12-23 23:16:56 +02:00
parent 59aee6052a
commit 328094acfd

View File

@ -921,10 +921,8 @@ int32_t WelsDecodeMbCabacPSlice (PWelsDecoderContext pCtx, PNalUnit pNalCur, uin
} }
// Calculate deqaunt coeff scaling list value // Calculate deqaunt coeff scaling list value
int32_t WelsCalcDeqCoeffScalingList (PWelsDecoderContext pCtx) { int32_t WelsCalcDeqCoeffScalingList (PWelsDecoderContext pCtx) {
int32_t iScalingListNum = 0;
if (pCtx->pSps->bSeqScalingMatrixPresentFlag || pCtx->pPps->bPicScalingMatrixPresentFlag) { if (pCtx->pSps->bSeqScalingMatrixPresentFlag || pCtx->pPps->bPicScalingMatrixPresentFlag) {
pCtx->bUseScalingList = true; pCtx->bUseScalingList = true;
iScalingListNum = (pCtx->pSps->uiChromaFormatIdc != 3) ? 8 : 12;
if (!pCtx->bDequantCoeff4x4Init || (pCtx->iDequantCoeffPpsid != pCtx->pPps->iPpsId)) { if (!pCtx->bDequantCoeff4x4Init || (pCtx->iDequantCoeffPpsid != pCtx->pPps->iPpsId)) {
int i, q, x; int i, q, x;