diff options
author | Chong Zhang <chz@google.com> | 2016-09-19 15:29:04 -0700 |
---|---|---|
committer | gitbuildkicker <android-build@google.com> | 2016-09-30 12:03:13 -0700 |
commit | c2a27ba1c949d1409f75bfef5cc052b7d88e4610 (patch) | |
tree | eb5d8448cb8b2dffab14a733f6818935ae021764 | |
parent | 8cbd1c5cb14e771982965a530b34282effc39b8c (diff) | |
download | frameworks_av-c2a27ba1c949d1409f75bfef5cc052b7d88e4610.zip frameworks_av-c2a27ba1c949d1409f75bfef5cc052b7d88e4610.tar.gz frameworks_av-c2a27ba1c949d1409f75bfef5cc052b7d88e4610.tar.bz2 |
IOMX: do not clear buffer if it's allocated by component
The component might depends on their buffers to be initialized
in certain ways to work. Don't clear unless we're allocating it.
bug: 31586647
Change-Id: Ia0a125797e414998ef0cd8ce03672f5b1e0bbf7a
(cherry picked from commit ea76573aa276f51950007217a97903c4fe64f685)
-rw-r--r-- | media/libstagefright/omx/OMXNodeInstance.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/media/libstagefright/omx/OMXNodeInstance.cpp b/media/libstagefright/omx/OMXNodeInstance.cpp index b86611f..1e76e01 100644 --- a/media/libstagefright/omx/OMXNodeInstance.cpp +++ b/media/libstagefright/omx/OMXNodeInstance.cpp @@ -1184,7 +1184,6 @@ status_t OMXNodeInstance::allocateBufferWithBackup( } CHECK_EQ(header->pAppPrivate, buffer_meta); - memset(header->pBuffer, 0, header->nAllocLen); *buffer = makeBufferID(header); |