Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 868c0a9e authored by Chong Zhang's avatar Chong Zhang Committed by android-build-merger
Browse files

Fix typo in dataspace change handling am: 6f8f2c88

am: a3b8e6b7

Change-Id: Ie5ce3b986e0a48fa2bdb5c83051e94ae4d3f36ac
parents 3da2c43e a3b8e6b7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -5322,13 +5322,13 @@ void ACodec::onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects
    convertCodecColorAspectsToPlatformAspects(aspects, &range, &standard, &transfer);

    // if some aspects are unspecified, use dataspace fields
    if (range != 0) {
    if (range == 0) {
        range = (dataSpace & HAL_DATASPACE_RANGE_MASK) >> HAL_DATASPACE_RANGE_SHIFT;
    }
    if (standard != 0) {
    if (standard == 0) {
        standard = (dataSpace & HAL_DATASPACE_STANDARD_MASK) >> HAL_DATASPACE_STANDARD_SHIFT;
    }
    if (transfer != 0) {
    if (transfer == 0) {
        transfer = (dataSpace & HAL_DATASPACE_TRANSFER_MASK) >> HAL_DATASPACE_TRANSFER_SHIFT;
    }