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 | if (pCtx->iTotalNumMbRec == kiTotalNumMbInCurLayer) { | 66 | if (pCtx->iTotalNumMbRec == kiTotalNumMbInCurLayer) { |
| 67 | pCtx->bPrintFrameErrorTraceFlag = true; | 67 | pCtx->bPrintFrameErrorTraceFlag = true; |
| 68 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO, | 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", | 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, | 70 | kiWidth, kiHeight, pCtx->sFrameCrop.iLeftOffset, pCtx->sFrameCrop.iRightOffset, pCtx->sFrameCrop.iTopOffset, |
| 71 | pCtx->sFrameCrop.iBottomOffset, pCtx->iIgnoredErrorInfoPacketCount); | 71 | pCtx->sFrameCrop.iBottomOffset, pCtx->iIgnoredErrorInfoPacketCount); |
| 72 | pCtx->iIgnoredErrorInfoPacketCount = 0; | 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 | bFrameCompleteFlag = false; //return later after output buffer is done | 80 | bFrameCompleteFlag = false; //return later after output buffer is done |
| 81 | if (pCtx->bInstantDecFlag) //no-delay decoding, wait for new slice | 81 | if (pCtx->bInstantDecFlag) //no-delay decoding, wait for new slice |
| 82 | return -1; | 82 | return -1; |
| 83 | } else if (pCurDq->sLayerInfo.sNalHeaderExt.bIdrFlag && (pCtx->iErrorCode == dsErrorFree)) { //complete non-ECed IDR frame done | 83 | } else if (pCurDq->sLayerInfo.sNalHeaderExt.bIdrFlag |
| 84 | pCtx->bDecErrorConedFlag = false; | 84 | && (pCtx->iErrorCode == dsErrorFree)) { //complete non-ECed IDR frame done |
| 85 | pCtx->bDecErrorConedFlag = false; | ||
| 85 | } | 86 | } |
| 86 | 87 | ||
| 87 | pCtx->iTotalNumMbRec = 0; | 88 | pCtx->iTotalNumMbRec = 0; |