[vlc-commits] mediacodec: fix HEVC aspect ratio on Amazon devices

Thomas Guillem git at videolan.org
Wed Jan 15 14:44:48 CET 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jan 15 14:40:15 2020 +0100| [49721e5ae5abc8d0b10f6202aa297e8e4c449141] | committer: Thomas Guillem

mediacodec: fix HEVC aspect ratio on Amazon devices

When I tested it, cf. 71fd3326ea4390d4e62434670baf69388f51ab04, I'm pretty sure
that this hack was not needed for HEVC. It seems to be needed now, so let's
enable for every codecs.

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

 modules/codec/omxil/mediacodec_jni.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/omxil/mediacodec_jni.c b/modules/codec/omxil/mediacodec_jni.c
index 63e2a93464..0cba2cfc3a 100644
--- a/modules/codec/omxil/mediacodec_jni.c
+++ b/modules/codec/omxil/mediacodec_jni.c
@@ -493,7 +493,7 @@ char* MediaCodec_GetName(vlc_object_t *p_obj, const char *psz_mime,
                  * checked only if the codec matches the MKT AVC one in order
                  * to avoid extra manufacturer check for other every devices.
                  * */
-                static const char mtk_avc[] = "OMX.MTK.VIDEO.DECODER.AVC";
+                static const char mtk_avc[] = "OMX.MTK.VIDEO.DECODER.";
                 if (strncmp(psz_name, mtk_avc, sizeof(mtk_avc) - 1) == 0)
                 {
                     char *manufacturer = GetManufacturer(env);



More information about the vlc-commits mailing list