Skip to content

Commit

Permalink
Merge pull request #322 from volvet/PreProcessExceptionHandle
Browse files Browse the repository at this point in the history
init the spatial last spatial picture if excption
  • Loading branch information
Licai Guo committed Feb 21, 2014
2 parents bf921c5 + d6c5c13 commit e7ed80c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions codec/encoder/core/src/wels_preprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ int32_t CWelsPreProcess::UpdateSpatialPictures(sWelsEncCtx* pCtx, SWelsSvcCoding
const int8_t iCurTid, const int32_t d_idx) {
if (iCurTid < m_uiSpatialLayersInTemporal[d_idx] - 1 || pParam->iDecompStages == 0){
if ((iCurTid >= MAX_TEMPORAL_LEVEL) || (m_uiSpatialLayersInTemporal[d_idx] - 1 > MAX_TEMPORAL_LEVEL)) {
InitLastSpatialPictures(pCtx);
return 1;
}
if (pParam->bEnableLongTermReference && pCtx->bLongTermRefFlag[d_idx][iCurTid]) {
Expand Down

0 comments on commit e7ed80c

Please sign in to comment.