ref: d6c5c138ee0e3a413f9d1b1dc410b996870e50ec
parent: a921bc6589620e0e1dbd6d7d3e6eb09f505595db
author: volvet <[email protected]>
date: Thu Feb 20 07:50:37 EST 2014
init the spatial last spatial picture if excption
--- a/codec/encoder/core/src/wels_preprocess.cpp
+++ b/codec/encoder/core/src/wels_preprocess.cpp
@@ -405,6 +405,7 @@
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]) {