1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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'.
This commit is contained in:
Stefan _ 2018-03-06 22:19:36 +00:00 committed by Matthieu Bouron
parent a43e9cdd44
commit 5ab0ecf283

View File

@ -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;