fix crash bug 963392 and update the print help text.
Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 2 files). Show all
Unified · Split
| @@ -3747,7 +3747,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, void* pDst, const SSourcePictur · 3746 unmodified lines | |||
| 3747 | } | 3747 | } |
| 3748 | 3748 | ||
| 3749 | if (iCurTid < pCtx->uiSpatialLayersInTemporal[d_idx] - 1 || pSvcParam->iDecompStages == 0) { | 3749 | if (iCurTid < pCtx->uiSpatialLayersInTemporal[d_idx] - 1 || pSvcParam->iDecompStages == 0) { |
| 3750 | if ((iCurTid >= MAX_TEMPORAL_LEVEL) || (pCtx->uiSpatialLayersInTemporal[d_idx] - 1 >= MAX_TEMPORAL_LEVEL)) { | 3750 | if ((iCurTid >= MAX_TEMPORAL_LEVEL) || (pCtx->uiSpatialLayersInTemporal[d_idx] - 1 > MAX_TEMPORAL_LEVEL)) { |
| 3751 | ForceCodingIDR (pCtx); // some logic error | 3751 | ForceCodingIDR (pCtx); // some logic error |
| 3752 | return -1; | 3752 | return -1; |
| 3753 | } | 3753 | } |