summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2016-10-26 17:41:56 -0700
committerChristopher R. Palmer <crpalmer@gmail.com>2017-02-03 20:26:47 -0500
commitffa026e98f239bbb17b7978cf8f10b7977ab563e (patch)
tree1603ec20780552dc5d71e7759db31b26e0f48126 /media
parent178e1e1e6a4fd7c3cc284858c6f56ddf7e2697c3 (diff)
downloadframeworks_av-ffa026e98f239bbb17b7978cf8f10b7977ab563e.zip
frameworks_av-ffa026e98f239bbb17b7978cf8f10b7977ab563e.tar.gz
frameworks_av-ffa026e98f239bbb17b7978cf8f10b7977ab563e.tar.bz2
stagefright: remove allottedSize equality check in IOMX::useBuffer
This was meant for buffers shared cross-process, but we are not gaining anything from this check even if it was at the correct place. Bug: 32436178 Change-Id: I6919e8ac6e35092273e171f49f6711ba577ba2e6 (cherry picked from commit 58388aa7be1c6963eb4b8464d46938ba9b0a04b0)
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/omx/OMXNodeInstance.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/media/libstagefright/omx/OMXNodeInstance.cpp b/media/libstagefright/omx/OMXNodeInstance.cpp
index c09064f..afb7382 100644
--- a/media/libstagefright/omx/OMXNodeInstance.cpp
+++ b/media/libstagefright/omx/OMXNodeInstance.cpp
@@ -784,13 +784,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 {