shithub: openh264

Download patch

ref: e7ed80c428c4b2301e1e6d85b4a0e295475cf8ff
parent: bf921c532c781c8daf8b2a33b00a4969849fa5cc
parent: d6c5c138ee0e3a413f9d1b1dc410b996870e50ec
author: Licai Guo <licaguo@cisco.com>
date: Fri Feb 21 12:09:17 EST 2014

Merge pull request #322 from volvet/PreProcessExceptionHandle

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]) {