aboutsummaryrefslogtreecommitdiffstats
path: root/libAACdec
diff options
context:
space:
mode:
authorFraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de>2018-10-19 16:45:56 +0200
committerJean-Michel Trivi <jmtrivi@google.com>2018-12-27 17:55:50 -0500
commit0ca9742ad246a1a0fe9835074c2f65e3de7b69dc (patch)
treee4fbed799d9f3c82992df2f94894562d2ed7370f /libAACdec
parentb8467f6d3255f3df0705ca637f0ff72b2e2b0f03 (diff)
downloadfdk-aac-0ca9742ad246a1a0fe9835074c2f65e3de7b69dc.tar.gz
fdk-aac-0ca9742ad246a1a0fe9835074c2f65e3de7b69dc.tar.bz2
fdk-aac-0ca9742ad246a1a0fe9835074c2f65e3de7b69dc.zip
Skip CRC check when flushing or concealment is applied
Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I0f340eb0fe7f5ee8778a73fbe27199ba4915de70
Diffstat (limited to 'libAACdec')
-rw-r--r--libAACdec/src/aacdecoder.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/libAACdec/src/aacdecoder.cpp b/libAACdec/src/aacdecoder.cpp
index a529389..fffc1f0 100644
--- a/libAACdec/src/aacdecoder.cpp
+++ b/libAACdec/src/aacdecoder.cpp
@@ -3033,9 +3033,11 @@ LINKSPEC_CPP AAC_DECODER_ERROR CAacDecoder_DecodeFrame(
aacChannels = 0;
}
- if (TRANSPORTDEC_OK != transportDec_CrcCheck(self->hInput)) {
- ErrorStatus = AAC_DEC_CRC_ERROR;
- self->frameOK = 0;
+ if (!(flags & (AACDEC_CONCEAL | AACDEC_FLUSH))) {
+ if (TRANSPORTDEC_OK != transportDec_CrcCheck(self->hInput)) {
+ ErrorStatus = AAC_DEC_CRC_ERROR;
+ self->frameOK = 0;
+ }
}
/* Ensure that in case of concealment a proper error status is set. */