Showing the changes to codec/decoder/core/src/decode_slice.cpp (1 of 2 files). Show all
Unified · Split
| @@ -357,15 +357,6 @@ int32_t WelsDecodeSlice (PWelsDecoderContext pCtx, bool bFirstSliceInLayer, PNal · 356 unmodified lines | |||
| 357 | } | 357 | } |
| 358 | 358 | ||
| 359 | iNextMbXyIndex = pSliceHeader->iFirstMbInSlice; | 359 | iNextMbXyIndex = pSliceHeader->iFirstMbInSlice; |
| 360 | |||
| 361 | if ((iNextMbXyIndex < 0) || (iNextMbXyIndex >= kiCountNumMb)) { | ||
| 362 | WelsLog (pCtx, WELS_LOG_ERROR, | ||
| 363 | "WelsDecodeSlice()::iFirstMbInSlice(%d) > pSps->kiTotalMb(%d). ERROR!!! resolution change....\n", | ||
| 364 | iNextMbXyIndex, kiCountNumMb); | ||
| 365 | pCtx->iErrorCode |= dsNoParamSets; | ||
| 366 | return dsNoParamSets; | ||
| 367 | } | ||
| 368 | |||
| 369 | iMbX = iNextMbXyIndex % pCurLayer->iMbWidth; | 360 | iMbX = iNextMbXyIndex % pCurLayer->iMbWidth; |
| 370 | iMbY = iNextMbXyIndex / pCurLayer->iMbWidth; // error is introduced by multiple slices case, 11/23/2009 | 361 | iMbY = iNextMbXyIndex / pCurLayer->iMbWidth; // error is introduced by multiple slices case, 11/23/2009 |
| 371 | pSlice->iMbSkipRun = -1; | 362 | pSlice->iMbSkipRun = -1; |