From 989540264ab553109a272459339c03015fca9197 Mon Sep 17 00:00:00 2001 From: Andy Hung Date: Mon, 19 May 2014 21:18:18 -0700 Subject: Fix 64 bit long pointer size for media scanning Bug: 14993718 Change-Id: I98989caddcca67c2b3257cead948382fddb066da --- media/jni/android_media_MediaScanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'media') diff --git a/media/jni/android_media_MediaScanner.cpp b/media/jni/android_media_MediaScanner.cpp index 84028b7..d21b442 100644 --- a/media/jni/android_media_MediaScanner.cpp +++ b/media/jni/android_media_MediaScanner.cpp @@ -351,7 +351,7 @@ android_media_MediaScanner_extractAlbumArt( if (!data) { return NULL; } - long len = *((long*)data); + jsize len = *((uint32_t*)data); jbyteArray array = env->NewByteArray(len); if (array != NULL) { -- cgit v1.1