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

Commit 39bb9304 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android Git Automerger
Browse files

am cadc1505: am 3ecc9db4: Fix software video decoder buffer size calculation

* commit 'cadc1505':
  Fix software video decoder buffer size calculation
parents a00c2c95 cadc1505
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -787,7 +787,7 @@ void SoftAVC::onQueueFilled(OMX_U32 portIndex) {
            }

            if (s_dec_op.u4_output_present) {
                outHeader->nFilledLen = (mWidth * mHeight * 3) / 2;
                outHeader->nFilledLen = (outputBufferWidth() * outputBufferHeight() * 3) / 2;

                outHeader->nTimeStamp = mTimeStamps[s_dec_op.u4_ts];
                mTimeStampsValid[s_dec_op.u4_ts] = false;
+1 −1
Original line number Diff line number Diff line
@@ -146,8 +146,8 @@ bool SoftVPX::outputBuffers(bool flushDecoder, bool display, bool eos, bool *por
        }

        outHeader->nOffset = 0;
        outHeader->nFilledLen = (width * height * 3) / 2;
        outHeader->nFlags = 0;
        outHeader->nFilledLen = (outputBufferWidth() * outputBufferHeight() * 3) / 2;
        outHeader->nTimeStamp = *(OMX_TICKS *)mImg->user_priv;

        uint8_t *dst = outHeader->pBuffer;