Skip to content

Commit

Permalink
Remove unused pSpatialLayer and iSliceIndex variables
Browse files Browse the repository at this point in the history
which break on Mac CI settings due to the variables being unused
  • Loading branch information
fippo committed Jun 12, 2024
1 parent 1c23887 commit fa1d995
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions codec/console/dec/src/h264dec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ void H264DecodeInstance (ISVCDecoder* pDecoder, const char* kpH264FileName, cons
unsigned long long uiTimeStamp = 0;
int64_t iStart = 0, iEnd = 0, iTotal = 0;
int32_t iSliceSize;
int32_t iSliceIndex = 0;
uint8_t* pBuf = NULL;
uint8_t uiStartCode[4] = {0, 0, 0, 1};

Expand Down Expand Up @@ -449,7 +448,6 @@ void H264DecodeInstance (ISVCDecoder* pDecoder, const char* kpH264FileName, cons
}
}
iBufPos += iSliceSize;
++ iSliceIndex;
}
FlushFrames (pDecoder, iTotal, pYuvFile, pOptionFile, iFrameCount, uiTimeStamp, iWidth, iHeight, iLastWidth,
iLastHeight);
Expand Down
2 changes: 0 additions & 2 deletions codec/encoder/core/inc/param_svc.h
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ typedef struct TagWelsSvcCodingParam: SEncParamExt {
const int32_t iDecStages = WELS_LOG2 (uiGopSize); // (int8_t)GetLogFactor(1.0f, 1.0f * pcfg->uiGopSize); //log2(uiGopSize)
const uint8_t* pTemporalIdList = &g_kuiTemporalIdListTable[iDecStages][0];
SSpatialLayerInternal* pDlp = &sDependencyLayers[0];
SSpatialLayerConfig* pSpatialLayer = &sSpatialLayers[0];
int8_t i = 0;

while (i < iSpatialLayerNum) {
Expand Down Expand Up @@ -524,7 +523,6 @@ typedef struct TagWelsSvcCodingParam: SEncParamExt {
return ENC_RETURN_INVALIDINPUT;
}
++ pDlp;
++ pSpatialLayer;
++ i;
}
iDecompStages = (int8_t)iDecStages;
Expand Down

0 comments on commit fa1d995

Please sign in to comment.