Merge pull request #1748 from dongzha/fixcrash

fix crash in SGE test
This commit is contained in:
sijchen 2015-01-23 09:45:54 +08:00
commit dfd24a987d

View File

@ -421,9 +421,11 @@ bool bUseScalingList;
} SWelsDecoderContext, *PWelsDecoderContext;
static inline void ResetActiveSPSForEachLayer (PWelsDecoderContext pCtx) {
for (int i = 0; i < MAX_LAYER_NUM; i++) {
pCtx->pActiveLayerSps[i] = NULL;
}
if ( pCtx->iTotalNumMbRec == 0 ) {
for (int i = 0; i < MAX_LAYER_NUM; i++) {
pCtx->pActiveLayerSps[i] = NULL;
}
}
}
//#ifdef __cplusplus
//}