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

Commit ed31e32a authored by Ram Mohan's avatar Ram Mohan Committed by Pawin Vongmasa
Browse files

fix output nFilledLen when prepareForAdaptivePlayback is true

Bug:63560919
Bug:62894603

Change-Id: If1fbd17ebc63743f88c3cbaf2b47a6ee726e06e8
parent 9fc83c5c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -789,7 +789,7 @@ void SoftMPEG2::onQueueFilled(OMX_U32 portIndex) {

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

                timeStampIdx = getMinTimestampIdx(mTimeStamps, mTimeStampsValid);
                if (timeStampIdx < 0) {