mirror of https://github.com/mstorsjo/fdk-aac.git
Merge "Skip CRC check when flushing or concealment is applied"
This commit is contained in:
commit
385764944d
|
@ -3033,10 +3033,12 @@ LINKSPEC_CPP AAC_DECODER_ERROR CAacDecoder_DecodeFrame(
|
||||||
aacChannels = 0;
|
aacChannels = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(flags & (AACDEC_CONCEAL | AACDEC_FLUSH))) {
|
||||||
if (TRANSPORTDEC_OK != transportDec_CrcCheck(self->hInput)) {
|
if (TRANSPORTDEC_OK != transportDec_CrcCheck(self->hInput)) {
|
||||||
ErrorStatus = AAC_DEC_CRC_ERROR;
|
ErrorStatus = AAC_DEC_CRC_ERROR;
|
||||||
self->frameOK = 0;
|
self->frameOK = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Ensure that in case of concealment a proper error status is set. */
|
/* Ensure that in case of concealment a proper error status is set. */
|
||||||
if ((self->frameOK == 0) && (ErrorStatus == AAC_DEC_OK)) {
|
if ((self->frameOK == 0) && (ErrorStatus == AAC_DEC_OK)) {
|
||||||
|
|
Loading…
Reference in New Issue