问题描述
CtsVideoTestCases:
android.video.cts.VideoEncoderDecoderTest#testH263Goog0Qual0176x0144 fail
android.video.cts.VideoEncoderDecoderTest#testMpeg4Goog0Qual0176x0144 fail
junit.framework.AssertionFailedError: rms error is bigger than the limit [71.65898971874873, 72.06630322857461, 71.38896848896059, 71.42307884557219, 71.03807465917168, 71.37617246481136, 69.86188898540244, 70.35844353087238, 69.4291330573414, 69.75561629197684, 71.67132049724061, 71.77830903362988, 68.71918203523552, 69.03982221168019, 68.68988023179618, 68.91085089264462, 72.53627389555753, 72.84800599200705, 70.51591117877537, 71.07855750248216] vs 20.0
解决方案
或者自行合入:
https://android-review.googlesource.com/c/platform/frameworks/av/+/1116737/
Note:
合入patch之后, 还需要删除下面的4个文件(以及vendor/partner_gms/partner_modules/MediaSwCodecPrebuilt下面对应的4个文件),
重新build合入patch的代码, 不删除的话patch不生效 ,
如果Google要求不能删,麻烦联系Google获取合入patch的新apex文件:
./vendor/partner_gms/apps/MediaSwCodecPrebuilt/com.android.media.swcodec-x86_64.apex
./vendor/partner_gms/apps/MediaSwCodecPrebuilt/com.android.media.swcodec-arm64.apex
./vendor/partner_gms/apps/MediaSwCodecPrebuilt/com.android.media.swcodec-arm.apex
./vendor/partner_gms/apps/MediaSwCodecPrebuilt/com.android.media.swcodec-x86.apex
Note:
目前Google反馈2020年2月的Mainline Media Module才会包含这笔补丁,所以现在客户送测遇到此项fail均可以用如下waive ID来申请到豁免:b/136962421