Discard SBR data in case of unsuccessful SBR header update.

Change-Id: I31ab01476d5a9de273c7adce14a1c29fa0023682
This commit is contained in:
Fraunhofer IIS FDK 2019-03-08 15:56:06 +01:00 committed by Jean-Michel Trivi
parent 97b421ce43
commit 273a43f61f
1 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,7 @@
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
Software License for The Fraunhofer FDK AAC Codec Library for Android 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. Forschung e.V. All rights reserved.
1. INTRODUCTION 1. INTRODUCTION
@ -871,11 +871,10 @@ INT sbrDecoder_Header(HANDLE_SBRDECODER self, HANDLE_FDK_BITSTREAM hBs,
if (sbrError == SBRDEC_OK) { if (sbrError == SBRDEC_OK) {
hSbrHeader->syncState = SBR_HEADER; hSbrHeader->syncState = SBR_HEADER;
hSbrHeader->status |= SBRDEC_HDR_STAT_UPDATE; 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.
} */
} }
} }
} }