fix crash in SGE test

This commit is contained in:
dong zhang 2015-01-22 09:10:28 +08:00
parent e7fff10d91
commit 6dcaf2f890

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
//}