commit | 977176c221a533a1e786b9aca189d6825765374d | [log] [tgz] |
---|---|---|
author | Wonsik Kim <wonsik@google.com> | Mon Dec 18 17:14:20 2023 -0800 |
committer | Sungtak Lee <taklee@google.com> | Fri Jan 05 22:40:19 2024 +0000 |
tree | 7400518ab7fe9e2fff186eecb2deeec081707325 | |
parent | 325445a5515099290bce5ef3f41b0e5662e16aa9 [diff] |
c2 hal: handle C2_BAD_INDEX In Codec 2.0 API query/config may return C2_BAD_INDEX but has valid out params. In AIDL when the result is not OK the out params are invalidated. To reconcile the differences, HAL adaptation returns OK for C2_BAD_INDEX and the client side recovers the error code from the out params. Bug: 315555457 Test: atest android.media.decoder.cts.DecoderTest Change-Id: If7c285929b0e7782ea305d5f1e268ff28900f2b5