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

Commit a18e8c66 authored by Vilas Bhat's avatar Vilas Bhat
Browse files

C2Decoder: Remove hardcoded PAGE_SIZE usage

Bug: 310232825
Test: Presubmit
Change-Id: I80fbac42cc899d5f21d826cf358567459eafbeb7
parent 784abf68
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ int32_t C2Decoder::decodeFrames(uint8_t *inputBuffer, vector<AMediaCodecBufferIn
        work->input.ordinal.frameIndex = mNumInputFrame;
        work->input.buffers.clear();
        int size = frameInfo[mNumInputFrame].size;
        int alignedSize = ALIGN(size, PAGE_SIZE);
        int alignedSize = ALIGN(size, getpagesize());
        if (size) {
            std::shared_ptr<C2LinearBlock> block;
            status = mLinearPool->fetchLinearBlock(