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

Commit fad42aa9 authored by Marco Nelissen's avatar Marco Nelissen Committed by android-build-merger
Browse files

Merge \\"DO NOT MERGE SoftAAC2: fix crash on all-zero adts buffer\\" into klp-dev am: dc7357d2

am: 7e6001b9

Change-Id: I405712eeccacfe73708b571dd7242ee9eeb96715
parents e6638175 7e6001b9
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -458,6 +458,9 @@ void SoftAAC2::onQueueFilled(OMX_U32 portIndex) {
                } else {
                    adtsHeaderSize = (protectionAbsent ? 7 : 9);

                    if (aac_frame_length < adtsHeaderSize) {
                        signalError = true;
                    } else {
                        inBuffer[0] = (UCHAR *)adtsHeader + adtsHeaderSize;
                        inBufferLength[0] = aac_frame_length - adtsHeaderSize;

@@ -465,6 +468,7 @@ void SoftAAC2::onQueueFilled(OMX_U32 portIndex) {
                        inHeader->nFilledLen -= adtsHeaderSize;
                    }
                }
            }

            if (signalError) {
                mSignalledError = true;