[vlc-commits] mediacodec: bypass profile check for OMX.LUMEVideoDecoder

Thomas Guillem git at videolan.org
Fri Dec 19 12:38:13 CET 2014


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Dec 19 12:32:52 2014 +0100| [8187efed1690db6cdf8d620d8eb06f44e4fcb3a3] | committer: Jean-Baptiste Kempf

mediacodec: bypass profile check for OMX.LUMEVideoDecoder

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8187efed1690db6cdf8d620d8eb06f44e4fcb3a3
---

 modules/codec/omxil/android_mediacodec.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/codec/omxil/android_mediacodec.c b/modules/codec/omxil/android_mediacodec.c
index 3efadba..8a6ce90 100644
--- a/modules/codec/omxil/android_mediacodec.c
+++ b/modules/codec/omxil/android_mediacodec.c
@@ -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);
 



More information about the vlc-commits mailing list