From b960ee9a4c058ffcfa9d0e40358eb69442673d61 Mon Sep 17 00:00:00 2001 From: Chong Zhang Date: Tue, 21 Jul 2015 09:18:16 -0700 Subject: SoftAVCDec: init decoder using updated size bug: 22451704 Change-Id: I29ba0c1e280f57ba9abc86ddd7eef6fb46df6d19 --- media/libstagefright/codecs/avcdec/SoftAVCDec.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/media/libstagefright/codecs/avcdec/SoftAVCDec.cpp b/media/libstagefright/codecs/avcdec/SoftAVCDec.cpp index aab3af7..8e7a277 100644 --- a/media/libstagefright/codecs/avcdec/SoftAVCDec.cpp +++ b/media/libstagefright/codecs/avcdec/SoftAVCDec.cpp @@ -526,6 +526,8 @@ OMX_ERRORTYPE SoftAVC::internalSetParameter(OMX_INDEXTYPE index, const OMX_PTR p const uint32_t oldHeight = mHeight; OMX_ERRORTYPE ret = SoftVideoDecoderOMXComponent::internalSetParameter(index, params); if (mWidth != oldWidth || mHeight != oldHeight) { + mNewWidth = mWidth; + mNewHeight = mHeight; status_t err = reInitDecoder(mNewWidth, mNewHeight); if (err != OK) { notify(OMX_EventError, OMX_ErrorUnsupportedSetting, err, NULL); -- cgit v1.1