]> git.sesse.net Git - vlc/commitdiff
mediacodec: don't use MTK MPEG4 decoders
authorThomas Guillem <thomas@gllm.fr>
Fri, 13 Mar 2015 17:27:32 +0000 (18:27 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 14 Mar 2015 10:31:39 +0000 (11:31 +0100)
Fix a crash with android mediaserver

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/omxil/android_mediacodec.c

index 114b648243625f4461b4bce398cca66d7c3660dd..2840494c379041219480f2b914f2d97c5493e682 100644 (file)
@@ -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)) {