]> git.sesse.net Git - vlc/commitdiff
mediacodec: bypass profile check for OMX.LUMEVideoDecoder
authorThomas Guillem <thomas@gllm.fr>
Fri, 19 Dec 2014 11:32:52 +0000 (12:32 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 19 Dec 2014 11:38:04 +0000 (12:38 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/omxil/android_mediacodec.c

index 3efadbacda8af424864cf1964e55433998de9ae8..8a6ce90fa4392b9d36a59d379fb71f47281fd80b 100644 (file)
@@ -444,6 +444,11 @@ static int OpenDecoder(vlc_object_t *p_this)
                    now check if the capabilities of the codec is
                    matching the video format. */
                 if (p_dec->fmt_in.i_codec == VLC_CODEC_H264 && fmt_profile) {
+                    /* This decoder doesn't expose its profiles and is high
+                     * profile capable */
+                    if (!strncmp(name_ptr, "OMX.LUMEVideoDecoder", __MIN(20, name_len)))
+                        found = true;
+
                     for (int i = 0; i < profile_levels_len && !found; ++i) {
                         jobject profile_level = (*env)->GetObjectArrayElement(env, profile_levels, i);