summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2012-05-26 13:47:50 +0200
committerDanny Baumann <dannybaumann@web.de>2012-05-26 13:47:50 +0200
commitc8e70a85c29a2acb1f4f800bee2eed2f7fca7404 (patch)
tree6b2ce81f1290135e668b987061214ba906a70bcd /include
parent9788e7f5e2cf5077e25bcb2115745bd79d5008d7 (diff)
downloadframeworks_base-c8e70a85c29a2acb1f4f800bee2eed2f7fca7404.zip
frameworks_base-c8e70a85c29a2acb1f4f800bee2eed2f7fca7404.tar.gz
frameworks_base-c8e70a85c29a2acb1f4f800bee2eed2f7fca7404.tar.bz2
Fix crashes on video playback.
Change I8ee9162536da5711e383dd1d89dca4fa1da107be missed correct variable initializations at one of two places, which led to a null pointer dereference. This patch fixes that. It also updates the variable that stores the original allocated length to be of the same type as used in the OMX buffer header. Change-Id: I15b083da8565ec3e8769d18ba1f19d3b12f54cb1
Diffstat (limited to 'include')
-rwxr-xr-xinclude/media/stagefright/OMXCodec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h
index 657cfe5..e338ba4 100755
--- a/include/media/stagefright/OMXCodec.h
+++ b/include/media/stagefright/OMXCodec.h
@@ -178,7 +178,7 @@ private:
void *mData;
MediaBuffer *mMediaBuffer;
OMX_U8 *mAllocatedBuffer;
- size_t mAllocatedSize;
+ OMX_U32 mAllocatedSize;
};
struct CodecSpecificData {