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

Commit 08657517 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Fix out of memory error

A packet with size 0 would never be removed from the queue,
and thus processed over and over again.

Bug: 129282427
Test: PoC, manual
Change-Id: Ia03a2b23df555a3c8ab53aac4589cb9b0a1b45a8
parent 55bfd11f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1153,7 +1153,7 @@ sp<ABuffer> ElementaryStreamQueue::dequeueAccessUnitAAC() {
    }

    const RangeInfo &info = *mRangeInfos.begin();
    if (mBuffer->size() < info.mLength) {
    if (info.mLength == 0 || mBuffer->size() < info.mLength) {
        return NULL;
    }