Merge commit 'c4ca420625183a8efa619e06287b47f3d2e72283'

* commit 'c4ca420625183a8efa619e06287b47f3d2e72283':
  Fix build
This commit is contained in:
Dave Sparks
2009-07-13 09:45:19 -07:00
committed by The Android Open Source Project

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");