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

Commit 5d1e62e2 authored by Wei Jia's avatar Wei Jia Committed by Android Git Automerger
Browse files

am 9cebcc5f: Merge "SoftAVCEncoder: fix mismatched type for comparison." into lmp-dev

* commit '9cebcc5f':
  SoftAVCEncoder: fix mismatched type for comparison.
parents 138f44a1 9cebcc5f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -259,7 +259,7 @@ OMX_ERRORTYPE SoftAVCEncoder::initEncParams() {
    int32_t nMacroBlocks = ((((mVideoWidth + 15) >> 4) << 4) *
    int32_t nMacroBlocks = ((((mVideoWidth + 15) >> 4) << 4) *
            (((mVideoHeight + 15) >> 4) << 4)) >> 8;
            (((mVideoHeight + 15) >> 4) << 4)) >> 8;
    CHECK(mSliceGroup == NULL);
    CHECK(mSliceGroup == NULL);
    if (nMacroBlocks > SIZE_MAX / sizeof(uint32_t)) {
    if ((size_t)nMacroBlocks > SIZE_MAX / sizeof(uint32_t)) {
        ALOGE("requested memory size is too big.");
        ALOGE("requested memory size is too big.");
        return OMX_ErrorUndefined;
        return OMX_ErrorUndefined;
    }
    }