Browse Source

bug: 修复hevc解码支持判断错误问题 close #230

hexleo 4 years ago
parent
commit
68fd6afc84

+ 1 - 1
Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/util/MediaUtil.kt

@@ -90,7 +90,7 @@ object MediaUtil {
             val numCodecs = MediaCodecList.getCodecCount()
             val numCodecs = MediaCodecList.getCodecCount()
             for (i in 0 until numCodecs) {
             for (i in 0 until numCodecs) {
                 val codecInfo = MediaCodecList.getCodecInfoAt(i)
                 val codecInfo = MediaCodecList.getCodecInfoAt(i)
-                if (!codecInfo.isEncoder) {
+                if (codecInfo.isEncoder) {
                     continue
                     continue
                 }
                 }
                 val types = codecInfo.supportedTypes
                 val types = codecInfo.supportedTypes