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

Commit 56bb7ed6 authored by Wonsik Kim's avatar Wonsik Kim
Browse files

aacdec: fix error handling

Mark frames substituted with silence due to an error as consumed.

Bug: 158471477
Test: atest CtsMediaTestCases -- --module-arg CtsMediaTestCases:size:small
Change-Id: I9c3c3c2d591108be6e40112fd20bd157beb9378b
parent de38ff80
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -791,7 +791,6 @@ void C2SoftAacDec::process(


                // After an error, replace bufferSize with the sum of the
                // After an error, replace bufferSize with the sum of the
                // decodedSizes to resynchronize the in/out lists.
                // decodedSizes to resynchronize the in/out lists.
                inInfo.decodedSizes.pop_back();
                inInfo.bufferSize = std::accumulate(
                inInfo.bufferSize = std::accumulate(
                        inInfo.decodedSizes.begin(), inInfo.decodedSizes.end(), 0);
                        inInfo.decodedSizes.begin(), inInfo.decodedSizes.end(), 0);