Skip to content

Commit

Permalink
C2Decoder: Remove hardcoded PAGE_SIZE usage
Browse files Browse the repository at this point in the history
Bug: 310232825
Test: Presubmit
Change-Id: I80fbac42cc899d5f21d826cf358567459eafbeb7
  • Loading branch information
Vilas Bhat committed Mar 28, 2024
1 parent 784abf6 commit a18e8c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media/tests/benchmark/src/native/decoder/C2Decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a18e8c6

Please sign in to comment.