Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan _ <sfan5@live.de>2018-03-06 21:00:27 +0300
committerAman Gupta <aman@tmm1.net>2018-03-07 00:52:24 +0300
commit313b6057fbf1ccb18be3165f41f5a49e26d2bdd2 (patch)
tree6ef598e9393c4aef3b150e0622b707cec39bff86 /libavcodec/mediacodec_wrapper.c
parent0645698ecc2021ec422b625a6c1d235d2f252563 (diff)
avcodec/mediacodec_wrapper: blacklist more software decoders
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>
Diffstat (limited to 'libavcodec/mediacodec_wrapper.c')
-rw-r--r--libavcodec/mediacodec_wrapper.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavcodec/mediacodec_wrapper.c b/libavcodec/mediacodec_wrapper.c
index 9436b3c994..83811281a5 100644
--- a/libavcodec/mediacodec_wrapper.c
+++ b/libavcodec/mediacodec_wrapper.c
@@ -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;
}