media: fix JNI call for 32-bit

Bug: 157528365
Test: atest CtsMediaTestCases:MediaCodecBlockModelTest
Change-Id: Ibe64c8c5187a6c00b14027823a4d19de1c131530
This commit is contained in:
Wonsik Kim
2020-05-28 17:54:06 -07:00
parent 0f8da63140
commit d319a44c11

View File

@@ -2995,7 +2995,7 @@ static void android_media_MediaCodec_LinearBlock_native_recycle(
JNIEnv *env, jobject thiz) {
JMediaCodecLinearBlock *context =
(JMediaCodecLinearBlock *)env->GetLongField(thiz, gLinearBlockInfo.contextId);
env->CallVoidMethod(thiz, gLinearBlockInfo.setInternalStateId, 0, false);
env->CallVoidMethod(thiz, gLinearBlockInfo.setInternalStateId, jlong(0), false);
delete context;
}