[vlc-commits] mediacodec: fix field type mismatch
Felix Abecassis
git at videolan.org
Wed May 14 11:51:06 CEST 2014
vlc | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Wed May 14 11:47:00 2014 +0200| [ee71af08af92c9e368587fa09866b0210256729a] | committer: Felix Abecassis
mediacodec: fix field type mismatch
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ee71af08af92c9e368587fa09866b0210256729a
---
modules/codec/omxil/android_mediacodec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/omxil/android_mediacodec.c b/modules/codec/omxil/android_mediacodec.c
index 2d912d0..94359c3 100644
--- a/modules/codec/omxil/android_mediacodec.c
+++ b/modules/codec/omxil/android_mediacodec.c
@@ -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;
More information about the vlc-commits
mailing list