aboutsummaryrefslogtreecommitdiffstats
path: root/libSBRdec/src/sbrdecoder.cpp
diff options
context:
space:
mode:
authorFraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de>2019-03-08 15:56:06 +0100
committerJean-Michel Trivi <jmtrivi@google.com>2019-03-15 18:10:11 +0000
commit273a43f61fdd07e29f2dd62ab3ee95ff8e29a832 (patch)
treed1ceed4d0f3163edb500046937add3de3128d5e1 /libSBRdec/src/sbrdecoder.cpp
parent97b421ce43995eaa730ac5081c56d8c2f55c9982 (diff)
downloadfdk-aac-273a43f61fdd07e29f2dd62ab3ee95ff8e29a832.tar.gz
fdk-aac-273a43f61fdd07e29f2dd62ab3ee95ff8e29a832.tar.bz2
fdk-aac-273a43f61fdd07e29f2dd62ab3ee95ff8e29a832.zip
Discard SBR data in case of unsuccessful SBR header update.
Change-Id: I31ab01476d5a9de273c7adce14a1c29fa0023682
Diffstat (limited to 'libSBRdec/src/sbrdecoder.cpp')
-rw-r--r--libSBRdec/src/sbrdecoder.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/libSBRdec/src/sbrdecoder.cpp b/libSBRdec/src/sbrdecoder.cpp
index 4bc6f69..c827ced 100644
--- a/libSBRdec/src/sbrdecoder.cpp
+++ b/libSBRdec/src/sbrdecoder.cpp
@@ -1,7 +1,7 @@
/* -----------------------------------------------------------------------------
Software License for The Fraunhofer FDK AAC Codec Library for Android
-© Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten
+© Copyright 1995 - 2019 Fraunhofer-Gesellschaft zur Förderung der angewandten
Forschung e.V. All rights reserved.
1. INTRODUCTION
@@ -871,11 +871,10 @@ INT sbrDecoder_Header(HANDLE_SBRDECODER self, HANDLE_FDK_BITSTREAM hBs,
if (sbrError == SBRDEC_OK) {
hSbrHeader->syncState = SBR_HEADER;
hSbrHeader->status |= SBRDEC_HDR_STAT_UPDATE;
+ } else {
+ hSbrHeader->syncState = SBR_NOT_INITIALIZED;
+ hSbrHeader->status = HEADER_ERROR;
}
- /* else {
- Since we already have overwritten the old SBR header the only way out
- is UPSAMPLING! This will be prepared in the next step.
- } */
}
}
}