diff options
author | Andreas Huber <andih@google.com> | 2009-08-26 14:48:20 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2009-08-26 14:48:20 -0700 |
commit | 0c89199745bc1bf05b997fc7c342017807676b6f (patch) | |
tree | 2f0e1b4ed919909207d70ce9814f5854dba551ea /media/libstagefright/MetaData.cpp | |
parent | 355edcea2f15c0f619c1e1d0f4fa433b0d38098f (diff) | |
download | frameworks_av-0c89199745bc1bf05b997fc7c342017807676b6f.zip frameworks_av-0c89199745bc1bf05b997fc7c342017807676b6f.tar.gz frameworks_av-0c89199745bc1bf05b997fc7c342017807676b6f.tar.bz2 |
assert => CHECK in stagefright.
Diffstat (limited to 'media/libstagefright/MetaData.cpp')
-rw-r--r-- | media/libstagefright/MetaData.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/media/libstagefright/MetaData.cpp b/media/libstagefright/MetaData.cpp index 5d23732..6b067cb 100644 --- a/media/libstagefright/MetaData.cpp +++ b/media/libstagefright/MetaData.cpp @@ -14,10 +14,10 @@ * limitations under the License. */ -#include <assert.h> #include <stdlib.h> #include <string.h> +#include <media/stagefright/MediaDebug.h> #include <media/stagefright/MetaData.h> namespace android { @@ -87,7 +87,7 @@ bool MetaData::findInt32(uint32_t key, int32_t *value) { return false; } - assert(size == sizeof(*value)); + CHECK_EQ(size, sizeof(*value)); *value = *(int32_t *)data; @@ -102,7 +102,7 @@ bool MetaData::findFloat(uint32_t key, float *value) { return false; } - assert(size == sizeof(*value)); + CHECK_EQ(size, sizeof(*value)); *value = *(float *)data; @@ -117,7 +117,7 @@ bool MetaData::findPointer(uint32_t key, void **value) { return false; } - assert(size == sizeof(*value)); + CHECK_EQ(size, sizeof(*value)); *value = *(void **)data; |