History

put EC before output

root committed 12 years ago

Commit 67afd911 parent 91cd93e2 files · +18 −24Browse files

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

Unified · Split

codec/decoder/core/src/error_concealment.cpp+0−11
@@ -172,9 +172,6 @@ bool NeedErrorCon (PWelsDecoderContext pCtx) { · 171 unmodified lines
172// ImplementErrorConceal172// ImplementErrorConceal
173// Do actual error concealment173// Do actual error concealment
174void ImplementErrorCon (PWelsDecoderContext pCtx) {174void ImplementErrorCon (PWelsDecoderContext pCtx) {
175 if (!NeedErrorCon (pCtx))
176 return;
177
178 if (ERROR_CON_DISABLE == pCtx->iErrorConMethod) {175 if (ERROR_CON_DISABLE == pCtx->iErrorConMethod) {
179 pCtx->iErrorCode |= dsBitstreamError;176 pCtx->iErrorCode |= dsBitstreamError;
180 return;177 return;
@@ -183,14 +180,6 @@ void ImplementErrorCon (PWelsDecoderContext pCtx) { · 2 unmodified lines
183 } else if (ERROR_CON_SLICE_COPY == pCtx->iErrorConMethod) {180 } else if (ERROR_CON_SLICE_COPY == pCtx->iErrorConMethod) {
184 DoErrorConSliceCopy (pCtx);181 DoErrorConSliceCopy (pCtx);
185 } //TODO add other EC methods here in the future182 } //TODO add other EC methods here in the future
186
187 //mark the erroneous frame as Ref pic in DPB
188 MarkECFrameAsRef (pCtx);
189 //need update frame_num due current frame is well decoded
190 pCtx->iPrevFrameNum = pCtx->pSliceHeader->iFrameNum;
191 if (pCtx->bLastHasMmco5)
192 pCtx->iPrevFrameNum = 0;
193
194}183}
195 184
196} // namespace WelsDec185} // namespace WelsDec

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