ref: 6dcaf2f890ecd3f439629a1250796506fa2f8db9
parent: e7fff10d9181bf2b4676556b1a77c008762bbfa7
author: dong zhang <dongzha@cisco.com>
date: Thu Jan 22 04:10:28 EST 2015
fix crash in SGE test
--- a/codec/decoder/core/inc/decoder_context.h
+++ b/codec/decoder/core/inc/decoder_context.h
@@ -421,9 +421,11 @@
} 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
//}
--
⑨