1
0
mirror of https://github.com/mstorsjo/fdk-aac.git synced 2025-06-05 22:39:13 +02:00

Merge "Skip CRC check when flushing or concealment is applied"

This commit is contained in:
Jean-Michel Trivi
2018-12-28 23:04:26 +00:00
committed by Gerrit Code Review

View File

@@ -3033,9 +3033,11 @@ LINKSPEC_CPP AAC_DECODER_ERROR CAacDecoder_DecodeFrame(
aacChannels = 0; aacChannels = 0;
} }
if (TRANSPORTDEC_OK != transportDec_CrcCheck(self->hInput)) { if (!(flags & (AACDEC_CONCEAL | AACDEC_FLUSH))) {
ErrorStatus = AAC_DEC_CRC_ERROR; if (TRANSPORTDEC_OK != transportDec_CrcCheck(self->hInput)) {
self->frameOK = 0; ErrorStatus = AAC_DEC_CRC_ERROR;
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. */