shithub: openh264

Download patch

ref: 328094acfd38f1c87730d6473bf66b7ddabbacad
parent: 59aee6052acb4787aa80d059ebbbf8a536cae26c
author: Martin Storsjö <martin@martin.st>
date: Tue Dec 23 18:16:56 EST 2014

Remove a write-only variable

This fixes warnings with GCC about a variable that is set but
not used.

--- a/codec/decoder/core/src/decode_slice.cpp
+++ b/codec/decoder/core/src/decode_slice.cpp
@@ -921,10 +921,8 @@
 }
 // Calculate deqaunt coeff scaling list value
 int32_t  WelsCalcDeqCoeffScalingList (PWelsDecoderContext pCtx) {
-  int32_t iScalingListNum = 0;
   if (pCtx->pSps->bSeqScalingMatrixPresentFlag || pCtx->pPps->bPicScalingMatrixPresentFlag) {
     pCtx->bUseScalingList = true;
-    iScalingListNum = (pCtx->pSps->uiChromaFormatIdc != 3) ? 8 : 12;
 
     if (!pCtx->bDequantCoeff4x4Init || (pCtx->iDequantCoeffPpsid != pCtx->pPps->iPpsId)) {
       int i, q, x;