commit | ed31e32afc3c0b3883e7dcb7f3fbfee7af2c7df2 | [log] [tgz] |
---|---|---|
author | Ram Mohan <ram.mohan@ittiam.com> | Mon Jul 03 17:07:44 2017 +0530 |
committer | Pawin Vongmasa <pawin@google.com> | Mon Jul 24 17:09:56 2017 -0700 |
tree | 6a3758fc2f8087006ad31d9917ea1a8d403a7ff4 | |
parent | 9fc83c5c30d110fdddb6ae5e436a0a6190203082 [diff] |
fix output nFilledLen when prepareForAdaptivePlayback is true Bug:63560919 Bug:62894603 Change-Id: If1fbd17ebc63743f88c3cbaf2b47a6ee726e06e8
diff --git a/media/libstagefright/codecs/mpeg2dec/SoftMPEG2.cpp b/media/libstagefright/codecs/mpeg2dec/SoftMPEG2.cpp index 9a69226..9d5f342 100644 --- a/media/libstagefright/codecs/mpeg2dec/SoftMPEG2.cpp +++ b/media/libstagefright/codecs/mpeg2dec/SoftMPEG2.cpp
@@ -789,7 +789,7 @@ 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) {