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

Commit 0355ad38 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

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

Merge "codec2: fix issue in allocating too many 8k buffers" am: e7b08e2b am: 0bea00ea am: 5efafeaa

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1906682



Change-Id: I7485f2fbba22623b7dd49d98a3ea15d4ea65a1b0
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e2faa808 5efafeaa
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -843,6 +843,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,