summaryrefslogtreecommitdiffstats
path: root/media/jni
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-04-30 15:13:02 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-04-30 15:13:02 +0000
commit414d94059f3559b67b4da25a34de6d5312abe06f (patch)
treea6b0ce0265e373a16d5af150cc617472b63d3fb3 /media/jni
parentdbbf431b289bb7a01b43db3412ecab00abe18362 (diff)
parent56cd8dbfbdeebc36ccbd5b2beedaaaa3f13c8b07 (diff)
downloadframeworks_base-414d94059f3559b67b4da25a34de6d5312abe06f.zip
frameworks_base-414d94059f3559b67b4da25a34de6d5312abe06f.tar.gz
frameworks_base-414d94059f3559b67b4da25a34de6d5312abe06f.tar.bz2
am 56cd8dbf: Merge "Cast CallVoidMethod\'s size_t parameters to jint"
* commit '56cd8dbfbdeebc36ccbd5b2beedaaaa3f13c8b07': Cast CallVoidMethod's size_t parameters to jint
Diffstat (limited to 'media/jni')
-rw-r--r--media/jni/android_media_MediaCodec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/jni/android_media_MediaCodec.cpp b/media/jni/android_media_MediaCodec.cpp
index 221ea57..5fd5dee 100644
--- a/media/jni/android_media_MediaCodec.cpp
+++ b/media/jni/android_media_MediaCodec.cpp
@@ -192,7 +192,7 @@ status_t JMediaCodec::dequeueOutputBuffer(
env, env->FindClass("android/media/MediaCodec$BufferInfo"));
jmethodID method = env->GetMethodID(clazz.get(), "set", "(IIJI)V");
- env->CallVoidMethod(bufferInfo, method, offset, size, timeUs, flags);
+ env->CallVoidMethod(bufferInfo, method, (jint)offset, (jint)size, timeUs, flags);
return OK;
}