Fix several -Werror=unused-variable and -Werror=unused-but-set-variable and removed dead code found with this warnings
Showing the changes to codec/decoder/core/src/au_parser.cpp (1 of 10 files). Show all
Unified · Split
| @@ -598,7 +598,6 @@ int32_t ParsePrefixNalUnit (PWelsDecoderContext pCtx, PBitStringAux pBs) { · 597 unmodified lines | ||
| 598 | 598 | |
| 599 | 599 | int32_t DecodeSpsSvcExt (PWelsDecoderContext pCtx, PSubsetSps pSpsExt, PBitStringAux pBs) { |
| 600 | 600 | PSpsSvcExt pExt = NULL; |
| 601 | − uint8_t uiChromaArrayType = 1; | |
| 602 | 601 | uint32_t uiCode; |
| 603 | 602 | int32_t iCode; |
| 604 | 603 | |
| @@ -617,7 +616,6 @@ int32_t DecodeSpsSvcExt (PWelsDecoderContext pCtx, PSubsetSps pSpsExt, PBitStrin · 12 unmodified lines | ||
| 617 | 616 | pExt->uiChromaPhaseXPlus1Flag = |
| 618 | 617 | 0; // FIXME: Incoherent with JVT X201 standard (= 1), but conformance to JSVM (= 0) implementation. |
| 619 | 618 | pExt->uiChromaPhaseYPlus1 = 1; |
| 620 | − uiChromaArrayType = pSpsExt->sSps.uiChromaArrayType; | |
| 621 | 619 | |
| 622 | 620 | WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //chroma_phase_x_plus1_flag |
| 623 | 621 | pExt->uiChromaPhaseXPlus1Flag = uiCode; |