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

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

am 5bb0a2cf: am e264b770: am d9d6c465: am 5d1e62e2: am 9cebcc5f: Merge...

am 5bb0a2cf: am e264b770: am d9d6c465: am 5d1e62e2: am 9cebcc5f: Merge "SoftAVCEncoder: fix mismatched type for comparison." into lmp-dev

* commit '5bb0a2cf':
  SoftAVCEncoder: fix mismatched type for comparison.
parents 7b0e6b0d 5bb0a2cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -268,7 +268,7 @@ OMX_ERRORTYPE SoftAVCEncoder::initEncParams() {

    int32_t nMacroBlocks = divUp(mWidth, 16) * divUp(mHeight, 16);
    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.");
        return OMX_ErrorUndefined;
    }