[FFmpeg-cvslog] avcodec/mediacodec_wrapper: blacklist more software decoders
Stefan _
git at videolan.org
Tue Mar 6 23:55:35 EET 2018
ffmpeg | branch: master | Stefan _ <sfan5 at live.de> | Tue Mar 6 18:00:27 2018 +0000| [313b6057fbf1ccb18be3165f41f5a49e26d2bdd2] | committer: Aman Gupta
avcodec/mediacodec_wrapper: blacklist more software decoders
Additionally blacklist ffmpeg, Samsung and Qualcomm
software implementations offered through MediaCodec.
Signed-off-by: Aman Gupta <aman at tmm1.net>
Signed-off-by: Matthieu Bouron <matthieu.bouron at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=313b6057fbf1ccb18be3165f41f5a49e26d2bdd2
---
libavcodec/mediacodec_wrapper.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
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;
}
More information about the ffmpeg-cvslog
mailing list