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

Commit 9d44880e authored by Lajos Molnar's avatar Lajos Molnar Committed by android-build-merger
Browse files

stagefright: remove allottedSize equality check in IOMX::useBuffer

am: 58388aa7

Change-Id: I828fa720f61e8f823ddec7c33b0db05683b76058
parents d03ad914 58388aa7
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -780,13 +780,6 @@ status_t OMXNodeInstance::useBuffer(
        }
        memset(data, 0, allottedSize);

        // if we are not connecting the buffers, the sizes must match
        if (allottedSize != params->size()) {
            CLOG_ERROR(useBuffer, BAD_VALUE, SIMPLE_BUFFER(portIndex, (size_t)allottedSize, data));
            delete[] data;
            return BAD_VALUE;
        }

        buffer_meta = new BufferMeta(
                params, portIndex, false /* copyToOmx */, false /* copyFromOmx */, data);
    } else {