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

Commit af106304 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 am: 0355ad38

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



Change-Id: I3d82de43aa33e1512f29c208b5672aecf8ca2d88
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents ac9383f0 0355ad38
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,