最近遇到一个比较奇怪的CTS失败项,因为整个平台已经很多项目都通过了认证,也没有报编解码相关的失败项,公版中也支持OMX.MTK.VIDEO.DECODER.AVC格式,但是跑测过程中出现了以下的失项:
CtsMediaTestCases android.media.cts.MediaCodecListTest#testAllComponentInstantiation
fail: java.io.IOException: Failed to find matching codec OMX.MTK.VIDEO.DECODER.AVC, error 0x80000000
失败项的测试输出:
05-27 20:36:45 I/ConsoleReporter: [1/1 armeabi-v7a CtsMediaTestCases tttttttttttttttt]
android.media.cts.MediaCodecListTest#testAllComponentInstantiation
fail: java.io.IOException: Failed to find matching codec OMX.MTK.VIDEO.DECODER.AVC, error 0x80000000
at android.media.MediaCodec.native_setup(Native Method)
at android.media.MediaCodec.<init>(MediaCodec.java:1799)
at android.media.MediaCodec.createByCodecName(MediaCodec.java:1780)
at android.media.cts.MediaCodecListTest.testComponentInstantiation(MediaCodecListTest.java:184)
at android.media.cts.MediaCodecListTest.testAllComponentInstantiation(MediaCodecListTest.java:202)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:115)
at android.support.test.internal.runner.junit3.AndroidTestResult.runProtected(AndroidTestResult.java:77)
at junit.framework.TestResult.run(TestResult.java:118)
at android.support.test.internal.runner.junit3.AndroidTestResult.run(AndroidTestResult.java:55)
at junit.framework.TestCase.run(TestCase.java:124)
at android.support.test.internal.runner.junit3.NonLeakyTestSuite$NonLeakyTest.run(NonLeakyTestSuite.java:63)
at android.support.test.internal.runner.junit3.AndroidTestSuite$2.run(AndroidTestSuite.java:111)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(Futur