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

Commit e33d922f authored by Lajos Molnar's avatar Lajos Molnar
Browse files

stagefright: don't use allocateBuffer for encoder metadata mode

encoder metadata mode does not need protected buffers, especially,
since we read the contents of the metadata in ACodec.

Change-Id: I5cf8198228d26e38a8225285dabdb6dc39fbbb8e
Related-to-Bug: 8968123
Bug: 26782004
parent 708336fe
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -834,8 +834,7 @@ status_t ACodec::allocateBuffersOnPort(OMX_U32 portIndex) {
                        ? kRequiresAllocateBufferOnInputPorts
                        : kRequiresAllocateBufferOnOutputPorts;

                if ((portIndex == kPortIndexInput && (mFlags & kFlagIsSecure))
                        || (portIndex == kPortIndexOutput && usingMetadataOnEncoderOutput())) {
                if (portIndex == kPortIndexInput && (mFlags & kFlagIsSecure)) {
                    mem.clear();

                    void *ptr;