Merge "SoftAVCDec: init decoder using updated size" into mnc-dev
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 @@
     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);