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

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

stagefright: remove allottedSize equality check in IOMX::useBuffer am:...

stagefright: remove allottedSize equality check in IOMX::useBuffer am: 58388aa7 am: 9d44880e am: 75a1b054
am: 4159ad15

Change-Id: Ib0e8e83da0d5802c3d08ddb36de082597067c35f
parents 9934c7d7 4159ad15
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -805,13 +805,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 {