[vlc-devel] [PATCH] mediacodec: don't use MTK MPEG4 decoders

Thomas Guillem thomas at gllm.fr
Fri Mar 13 18:27:32 CET 2015


Fix a crash with android mediaserver
---
 modules/codec/omxil/android_mediacodec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/omxil/android_mediacodec.c b/modules/codec/omxil/android_mediacodec.c
index 114b648..2840494 100644
--- a/modules/codec/omxil/android_mediacodec.c
+++ b/modules/codec/omxil/android_mediacodec.c
@@ -444,6 +444,8 @@ static int OpenDecoder(vlc_object_t *p_this)
 
         if (!strncmp(name_ptr, "OMX.google.", __MIN(11, name_len)))
             goto loopclean;
+        if (!strncmp(name_ptr, "OMX.MTK.VIDEO.DECODER.MPEG4", name_len))
+            goto loopclean;
         for (int j = 0; j < num_types && !found; j++) {
             jobject type = (*env)->GetObjectArrayElement(env, types, j);
             if (!jstrcmp(env, type, mime)) {
-- 
2.1.3




More information about the vlc-devel mailing list