History

clean redundant checks in decoder

Licai Guo committed 12 years ago

Commit f589c581 parent 8492aac2 files · +0 −16Browse files

Showing the changes to codec/decoder/core/src/decode_slice.cpp (1 of 2 files). Show all

Unified · Split

codec/decoder/core/src/decode_slice.cpp+0−9
@@ -357,15 +357,6 @@ int32_t WelsDecodeSlice (PWelsDecoderContext pCtx, bool bFirstSliceInLayer, PNal · 356 unmodified lines
357357 }
358358
359359 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−
369360 iMbX = iNextMbXyIndex % pCurLayer->iMbWidth;
370361 iMbY = iNextMbXyIndex / pCurLayer->iMbWidth; // error is introduced by multiple slices case, 11/23/2009
371362 pSlice->iMbSkipRun = -1;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t