Skip to content

Commit fa1d995

Browse files
committed
Remove unused pSpatialLayer and iSliceIndex variables
which break on Mac CI settings due to the variables being unused
1 parent 1c23887 commit fa1d995

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

codec/console/dec/src/h264dec.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ void H264DecodeInstance (ISVCDecoder* pDecoder, const char* kpH264FileName, cons
231231
unsigned long long uiTimeStamp = 0;
232232
int64_t iStart = 0, iEnd = 0, iTotal = 0;
233233
int32_t iSliceSize;
234-
int32_t iSliceIndex = 0;
235234
uint8_t* pBuf = NULL;
236235
uint8_t uiStartCode[4] = {0, 0, 0, 1};
237236

@@ -449,7 +448,6 @@ void H264DecodeInstance (ISVCDecoder* pDecoder, const char* kpH264FileName, cons
449448
}
450449
}
451450
iBufPos += iSliceSize;
452-
++ iSliceIndex;
453451
}
454452
FlushFrames (pDecoder, iTotal, pYuvFile, pOptionFile, iFrameCount, uiTimeStamp, iWidth, iHeight, iLastWidth,
455453
iLastHeight);

codec/encoder/core/inc/param_svc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,6 @@ typedef struct TagWelsSvcCodingParam: SEncParamExt {
493493
const int32_t iDecStages = WELS_LOG2 (uiGopSize); // (int8_t)GetLogFactor(1.0f, 1.0f * pcfg->uiGopSize); //log2(uiGopSize)
494494
const uint8_t* pTemporalIdList = &g_kuiTemporalIdListTable[iDecStages][0];
495495
SSpatialLayerInternal* pDlp = &sDependencyLayers[0];
496-
SSpatialLayerConfig* pSpatialLayer = &sSpatialLayers[0];
497496
int8_t i = 0;
498497

499498
while (i < iSpatialLayerNum) {
@@ -524,7 +523,6 @@ typedef struct TagWelsSvcCodingParam: SEncParamExt {
524523
return ENC_RETURN_INVALIDINPUT;
525524
}
526525
++ pDlp;
527-
++ pSpatialLayer;
528526
++ i;
529527
}
530528
iDecompStages = (int8_t)iDecStages;

0 commit comments

Comments
 (0)