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

Commit 2ad160ba authored by Dan Stoza's avatar Dan Stoza
Browse files

Add cast to make room for naming pixel_format_t

Fixes a compiler warning/error about comparing two different enum
types so that the HAL_PIXEL_FORMAT_* enum in system/graphics.h can be
named.

Change-Id: I7acb5f67c66e42a4e556ff53c1e59cee40c7d585
parent 4472c761
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3840,7 +3840,7 @@ bool ACodec::describeDefaultColorFormat(DescribeColorFormatParams &params) {
        fmt != OMX_COLOR_FormatYUV420PackedPlanar &&
        fmt != OMX_COLOR_FormatYUV420PackedPlanar &&
        fmt != OMX_COLOR_FormatYUV420SemiPlanar &&
        fmt != OMX_COLOR_FormatYUV420SemiPlanar &&
        fmt != OMX_COLOR_FormatYUV420PackedSemiPlanar &&
        fmt != OMX_COLOR_FormatYUV420PackedSemiPlanar &&
        fmt != HAL_PIXEL_FORMAT_YV12) {
        fmt != (OMX_COLOR_FORMATTYPE)HAL_PIXEL_FORMAT_YV12) {
        ALOGW("do not know color format 0x%x = %d", fmt, fmt);
        ALOGW("do not know color format 0x%x = %d", fmt, fmt);
        return false;
        return false;
    }
    }