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

Commit 97f63970 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "libstagefright: Correcting buffer size to be allocated from ashmem." into gingerbread

parents 7fe196ca a8add896
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1626,7 +1626,7 @@ status_t OMXCodec::allocateBuffersOnPort(OMX_U32 portIndex) {
            def.nBufferCountActual, def.nBufferSize,
            portIndex == kPortIndexInput ? "input" : "output");

    size_t totalSize = def.nBufferCountActual * def.nBufferSize;
    size_t totalSize = def.nBufferCountActual * ((def.nBufferSize + 31) & (~31));
    mDealer[portIndex] = new MemoryDealer(totalSize, "OMXCodec");

#ifdef USE_GETBUFFERINFO