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

Commit 2a21f09f authored by Pawin Vongmasa's avatar Pawin Vongmasa Committed by android-build-merger
Browse files

DO NOT MERGE - Fix build breakage caused by commit...

DO NOT MERGE - Fix build breakage caused by commit 940829f6. am: ad929db7
am: 453ba68c

Change-Id: I833cb55b51e554e6b2ef3227f2923def6643c9e4
parents b71a431e 453ba68c
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -27,6 +27,10 @@

#include "mp4dec_api.h"

#ifndef UINT32_MAX
#define UINT32_MAX (4294967295U)
#endif

namespace android {

static const CodecProfileLevel kM4VProfileLevels[] = {
@@ -193,8 +197,8 @@ void SoftMPEG4::onQueueFilled(OMX_U32 portIndex) {
            OMX_U32 yFrameSize = sizeof(uint8) * mHandle->size;
            if ((outHeader->nAllocLen < yFrameSize) ||
                    (outHeader->nAllocLen - yFrameSize < yFrameSize / 2)) {
                ALOGE("Too small output buffer for reference frame: %zu bytes",
                        outHeader->nAllocLen);
                ALOGE("Too small output buffer for reference frame: %lu bytes",
                        (unsigned long)outHeader->nAllocLen);
                android_errorWriteLog(0x534e4554, "30033990");
                notify(OMX_EventError, OMX_ErrorUndefined, 0, NULL);
                mSignalledError = true;