diff options
author | Fraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de> | 2018-10-19 16:41:27 +0200 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2018-12-27 14:51:52 -0500 |
commit | 0cebd077b61cc0946ea4062bf816defdffaef72b (patch) | |
tree | e78e88638c742d3dcd5f704d6ad50758d256a945 /libSBRdec/src | |
parent | 0271d6a6f3111be142456bf185e834aa5bc10309 (diff) | |
download | fdk-aac-0cebd077b61cc0946ea4062bf816defdffaef72b.tar.gz fdk-aac-0cebd077b61cc0946ea4062bf816defdffaef72b.tar.bz2 fdk-aac-0cebd077b61cc0946ea4062bf816defdffaef72b.zip |
Apply sbrDecoder_Parse() function for all explict SBR elements
Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc
Change-Id: I97471c4db309307a21100f1d5d88d3c4e24d2670
Diffstat (limited to 'libSBRdec/src')
-rw-r--r-- | libSBRdec/src/sbrdecoder.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libSBRdec/src/sbrdecoder.cpp b/libSBRdec/src/sbrdecoder.cpp index f40639b..4bc6f69 100644 --- a/libSBRdec/src/sbrdecoder.cpp +++ b/libSBRdec/src/sbrdecoder.cpp @@ -1150,6 +1150,11 @@ SBR_ERROR sbrDecoder_Parse(HANDLE_SBRDECODER self, HANDLE_FDK_BITSTREAM hBs, int lastSlot, lastHdrSlot = 0, thisHdrSlot = 0; + if (*count <= 0) { + setFrameErrorFlag(self->pSbrElement[elementIndex], FRAME_ERROR); + return SBRDEC_OK; + } + /* SBR sanity checks */ if (self == NULL) { errorStatus = SBRDEC_NOT_INITIALIZED; |