History

Fix compiler warnings and remove dead code

Fix several -Werror=unused-variable and -Werror=unused-but-set-variable and removed dead code found with this warnings

Andoni Morales Alastruey committed 12 years ago

Commit ae60f1b1 parent 703c69d10 files · +1 −79Browse files

Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 10 files). Show all

Unified · Split

codec/decoder/core/src/decoder_core.cpp+0−3
@@ -206,7 +206,6 @@ int32_t ParseRefPicListReordering (PBitStringAux pBs, PSliceHeader pSh) { · 205 unmodified lines
206int32_t ParseDecRefPicMarking (PWelsDecoderContext pCtx, PBitStringAux pBs, PSliceHeader pSh, PSps pSps,206int32_t ParseDecRefPicMarking (PWelsDecoderContext pCtx, PBitStringAux pBs, PSliceHeader pSh, PSps pSps,
207 const bool kbIdrFlag) {207 const bool kbIdrFlag) {
208 PRefPicMarking const kpRefMarking = &pSh->sRefMarking;208 PRefPicMarking const kpRefMarking = &pSh->sRefMarking;
209 PRefPic pRefPic = &pCtx->sRefPic;
210 uint32_t uiCode;209 uint32_t uiCode;
211 if (kbIdrFlag) {210 if (kbIdrFlag) {
212 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //no_output_of_prior_pics_flag211 WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //no_output_of_prior_pics_flag
@@ -990,7 +989,6 @@ int32_t InitialDqLayersContext (PWelsDecoderContext pCtx, const int32_t kiMaxWid · 777 unmodified lines
990 989
991void UninitialDqLayersContext (PWelsDecoderContext pCtx) {990void UninitialDqLayersContext (PWelsDecoderContext pCtx) {
992 int32_t i = 0;991 int32_t i = 0;
993 int32_t j = 0;
994 992
995 do {993 do {
996 PDqLayer pDq = pCtx->pDqLayersList[i];994 PDqLayer pDq = pCtx->pDqLayersList[i];
@@ -1642,7 +1640,6 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 · 645 unmodified lines
1642 uint8_t uiNalRefIdc = 0;1640 uint8_t uiNalRefIdc = 0;
1643 bool bFreshSliceAvailable =1641 bool bFreshSliceAvailable =
1644 true; // Another fresh slice comingup for given dq layer, for multiple slices in case of header parts of slices sometimes loss over error-prone channels, 8/14/20081642 true; // Another fresh slice comingup for given dq layer, for multiple slices in case of header parts of slices sometimes loss over error-prone channels, 8/14/2008
1645 PPicture pStoreBasePic = NULL;
1646 1643
1647 //update pCurDqLayer at the starting of AU decoding1644 //update pCurDqLayer at the starting of AU decoding
1648 if (pCtx->bInitialDqLayersMem) {1645 if (pCtx->bInitialDqLayersMem) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t