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

Commit 2c396602 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 am: d99250c1 am: b7b58a2e am: 83c4ce76
am: 53e73550

Change-Id: I53bc957abe6f2547d38ff66d86d18cb9be5fb67a
parents ce43e0f6 53e73550
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 {