ref: f265ab8e850e1f156f561e61e4ed2bc1f005f61a
parent: 13080273773867f5aaf9b13b8c6856acd1e27e48
author: Sijia Chen <sijchen@cisco.com>
date: Thu Jul 2 11:38:49 EDT 2015
fix a first-mb judgement and enablings a test
--- a/codec/encoder/core/src/svc_encode_slice.cpp
+++ b/codec/encoder/core/src/svc_encode_slice.cpp
@@ -862,8 +862,8 @@
const int32_t kiPartitaionId = pCurSlice->uiSliceIdx % kiActiveThreadsNum;
const int32_t kiLastMbIdxInPartition = pEncCtx->pCurDqLayer->pLastMbIdxOfPartition[kiPartitaionId];
- const bool kbCurMbNotFirstMbOfCurSlice = (pSliceCtx->pOverallMbMap[iCurMbIdx] ==
- pSliceCtx->pOverallMbMap[iCurMbIdx - 1]);
+ const bool kbCurMbNotFirstMbOfCurSlice = ((iCurMbIdx > 0) && (pSliceCtx->pOverallMbMap[iCurMbIdx] ==
+ pSliceCtx->pOverallMbMap[iCurMbIdx - 1]));
const bool kbCurMbNotLastMbOfCurPartition = iCurMbIdx < kiLastMbIdxInPartition;
if (pCurSlice->bDynamicSlicingSliceSizeCtrlFlag)