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

Commit e7b08e2b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "codec2: fix issue in allocating too many 8k buffers"

parents fd4ce6af 9ed0ab23
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -810,6 +810,10 @@ sp<ConstGraphicBlockBuffer> ConstGraphicBlockBuffer::AllocateEmpty(
        }
    }
    sp<ABuffer> aBuffer(alloc(align(width, 16) * align(height, 16) * bpp / 8));
    if (aBuffer == nullptr) {
        ALOGD("%s: failed to allocate buffer", __func__);
        return nullptr;
    }
    return new ConstGraphicBlockBuffer(
            format,
            aBuffer,