avcodec/mediacodec_wrapper: fix false positives in swdec blacklist

'OMX.SEC.avc.dec' is a valid hardware decoder, while the decoders
we seek to blacklist all match 'OMX.SEC.*.sw.dec'.
pull/281/head
Stefan _ 7 years ago committed by Matthieu Bouron
parent a43e9cdd44
commit 5ab0ecf283
  1. 2
      libavcodec/mediacodec_wrapper.c

@ -473,7 +473,7 @@ char *ff_AMediaCodecList_getCodecNameByType(const char *mime, int profile, int e
if (
strstr(name, "OMX.google") ||
strstr(name, "OMX.ffmpeg") ||
strstr(name, "OMX.SEC") ||
(strstr(name, "OMX.SEC") && strstr(name, ".sw.")) ||
!strcmp(name, "OMX.qcom.video.decoder.hevcswvdec")) {
av_freep(&name);
goto done_with_type;

Loading…
Cancel
Save