avcodec/mediacodec_wrapper: blacklist more software decoders
authorStefan _ <sfan5@live.de>
Tue, 6 Mar 2018 18:00:27 +0000 (18:00 +0000)
committerAman Gupta <aman@tmm1.net>
Tue, 6 Mar 2018 21:52:24 +0000 (13:52 -0800)
Additionally blacklist ffmpeg, Samsung and Qualcomm
software implementations offered through MediaCodec.

Signed-off-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com>
libavcodec/mediacodec_wrapper.c

index 9436b3c..8381128 100644 (file)
@@ -469,7 +469,12 @@ char *ff_AMediaCodecList_getCodecNameByType(const char *mime, int profile, int e
                     goto done;
                 }
 
-                if (strstr(name, "OMX.google")) {
+                /* Skip software decoders */
+                if (
+                    strstr(name, "OMX.google") ||
+                    strstr(name, "OMX.ffmpeg") ||
+                    strstr(name, "OMX.SEC") ||
+                    !strcmp(name, "OMX.qcom.video.decoder.hevcswvdec")) {
                     av_freep(&name);
                     goto done_with_type;
                 }