Commit ee71af08 authored by Felix Abecassis's avatar Felix Abecassis

mediacodec: fix field type mismatch

parent d1f48110
......@@ -413,7 +413,7 @@ static int OpenDecoder(vlc_object_t *p_this)
for (int i = 0; i < profile_levels_len && !found; ++i) {
jobject profile_level = (*env)->GetObjectArrayElement(env, profile_levels, i);
int omx_profile = (*env)->GetLongField(env, profile_level, p_sys->profile_field);
int omx_profile = (*env)->GetIntField(env, profile_level, p_sys->profile_field);
size_t codec_profile = convert_omx_to_profile_idc(omx_profile);
if (codec_profile != fmt_profile)
continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment