Fix build

This commit is contained in:
Dave Sparks
2009-07-13 09:38:20 -07:00
parent 6cdc4f9c00
commit c4ca420625

View File

@@ -137,7 +137,7 @@ void JNICameraContext::copyAndPost(JNIEnv* env, const sp<IMemory>& dataPtr, int
uint8_t *heapBase = (uint8_t*)heap->base();
if (heapBase != NULL) {
uint8_t *data = heapBase + offset;
const jbyte* data = reinterpret_cast<const jbyte*>(heapBase + offset);
obj = env->NewByteArray(size);
if (obj == NULL) {
LOGE("Couldn't allocate byte array for JPEG data");