Commit 5ab0ecf2 authored by Stefan _'s avatar Stefan _ Committed by Matthieu Bouron

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'.
parent a43e9cdd
...@@ -473,7 +473,7 @@ char *ff_AMediaCodecList_getCodecNameByType(const char *mime, int profile, int e ...@@ -473,7 +473,7 @@ char *ff_AMediaCodecList_getCodecNameByType(const char *mime, int profile, int e
if ( if (
strstr(name, "OMX.google") || strstr(name, "OMX.google") ||
strstr(name, "OMX.ffmpeg") || strstr(name, "OMX.ffmpeg") ||
strstr(name, "OMX.SEC") || (strstr(name, "OMX.SEC") && strstr(name, ".sw.")) ||
!strcmp(name, "OMX.qcom.video.decoder.hevcswvdec")) { !strcmp(name, "OMX.qcom.video.decoder.hevcswvdec")) {
av_freep(&name); av_freep(&name);
goto done_with_type; goto done_with_type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment