summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs/avcdec
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2015-07-21 09:18:16 -0700
committerChong Zhang <chz@google.com>2015-07-21 09:21:24 -0700
commit87aed14c3d1462eaa92ddd00ca0b1167a2e5749e (patch)
treef1ce33d9ba00e3884d2fe94296405a0eeb55096b /media/libstagefright/codecs/avcdec
parenta8dc93efc9be8d5e37c7473601fb8654804188c1 (diff)
downloadframeworks_av-87aed14c3d1462eaa92ddd00ca0b1167a2e5749e.zip
frameworks_av-87aed14c3d1462eaa92ddd00ca0b1167a2e5749e.tar.gz
frameworks_av-87aed14c3d1462eaa92ddd00ca0b1167a2e5749e.tar.bz2
SoftAVCDec: init decoder using updated size
bug: 22451704 Change-Id: I29ba0c1e280f57ba9abc86ddd7eef6fb46df6d19
Diffstat (limited to 'media/libstagefright/codecs/avcdec')
-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);