Browse Source

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>
tags/n4.0
Stefan _ Aman Gupta 8 years ago
parent
commit
313b6057fb
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      libavcodec/mediacodec_wrapper.c

+ 6
- 1
libavcodec/mediacodec_wrapper.c View 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;
}


Loading…
Cancel
Save