Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 14 files). Show all
Unified · Split
| @@ -66,9 +66,9 @@ static inline int32_t DecodeFrameConstruction (PWelsDecoderContext pCtx, uint8_t · 65 unmodified lines | ||
| 66 | 66 | if (pCtx->iTotalNumMbRec == kiTotalNumMbInCurLayer) { |
| 67 | 67 | pCtx->bPrintFrameErrorTraceFlag = true; |
| 68 | 68 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO, |
| 69 | − "DecodeFrameConstruction()::::output first frame of new sequence, %d x %d, crop_left:%d, crop_right:%d, crop_top:%d, crop_bottom:%d, ignored error packet:%d.\n", | |
| 70 | − kiWidth, kiHeight, pCtx->sFrameCrop.iLeftOffset, pCtx->sFrameCrop.iRightOffset, pCtx->sFrameCrop.iTopOffset, | |
| 71 | − pCtx->sFrameCrop.iBottomOffset, pCtx->iIgnoredErrorInfoPacketCount); | |
| 69 | + "DecodeFrameConstruction()::::output first frame of new sequence, %d x %d, crop_left:%d, crop_right:%d, crop_top:%d, crop_bottom:%d, ignored error packet:%d.\n", | |
| 70 | + kiWidth, kiHeight, pCtx->sFrameCrop.iLeftOffset, pCtx->sFrameCrop.iRightOffset, pCtx->sFrameCrop.iTopOffset, | |
| 71 | + pCtx->sFrameCrop.iBottomOffset, pCtx->iIgnoredErrorInfoPacketCount); | |
| 72 | 72 | pCtx->iIgnoredErrorInfoPacketCount = 0; |
| 73 | 73 | } |
| 74 | 74 | } |
| @@ -80,8 +80,9 @@ static inline int32_t DecodeFrameConstruction (PWelsDecoderContext pCtx, uint8_t · 5 unmodified lines | ||
| 80 | 80 | bFrameCompleteFlag = false; //return later after output buffer is done |
| 81 | 81 | if (pCtx->bInstantDecFlag) //no-delay decoding, wait for new slice |
| 82 | 82 | return -1; |
| 83 | − } else if (pCurDq->sLayerInfo.sNalHeaderExt.bIdrFlag && (pCtx->iErrorCode == dsErrorFree)) { //complete non-ECed IDR frame done | |
| 84 | − pCtx->bDecErrorConedFlag = false; | |
| 83 | + } else if (pCurDq->sLayerInfo.sNalHeaderExt.bIdrFlag | |
| 84 | + && (pCtx->iErrorCode == dsErrorFree)) { //complete non-ECed IDR frame done | |
| 85 | + pCtx->bDecErrorConedFlag = false; | |
| 85 | 86 | } |
| 86 | 87 | |
| 87 | 88 | pCtx->iTotalNumMbRec = 0; |