summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2015-07-21 09:18:16 -0700
committerThe Android Automerger <android-build@google.com>2015-07-21 16:00:55 -0700
commitb960ee9a4c058ffcfa9d0e40358eb69442673d61 (patch)
treed97e28a280958c5c99c171c6af4dadbaf49b912e
parent17d0efd17fbb2573adcde8dcbe77726f622817da (diff)
downloadframeworks_av-b960ee9a4c058ffcfa9d0e40358eb69442673d61.zip
frameworks_av-b960ee9a4c058ffcfa9d0e40358eb69442673d61.tar.gz
frameworks_av-b960ee9a4c058ffcfa9d0e40358eb69442673d61.tar.bz2
SoftAVCDec: init decoder using updated size
bug: 22451704 Change-Id: I29ba0c1e280f57ba9abc86ddd7eef6fb46df6d19
-rw-r--r--media/libstagefright/codecs/avcdec/SoftAVCDec.cpp2
1 files changed, 2 insertions, 0 deletions
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);