Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40470735 authored by Wei Jia's avatar Wei Jia
Browse files

AACExtractor: allow prematured AAC stream.

Bug: 30184000
Change-Id: Ia80cfe2e416200e7b0198cfd7ae53a8ac52ee475
parent 38c75d9d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -174,7 +174,9 @@ AACExtractor::AACExtractor(
    if (mDataSource->getSize(&streamSize) == OK) {
         while (offset < streamSize) {
            if ((frameSize = getAdtsFrameLength(source, offset, NULL)) == 0) {
                return;
                ALOGW("prematured AAC stream (%lld vs %lld)",
                        (long long)offset, (long long)streamSize);
                break;
            }

            mOffsetVector.push(offset);