summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs
diff options
context:
space:
mode:
authorRonghua Wu <ronghuawu@google.com>2014-10-03 18:12:17 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-03 18:12:17 +0000
commitc4fd8b3b7fc24932626143ea45ab75192cc247c2 (patch)
tree8f5b9b968658887526fd2ec95d0a18242f94af9d /media/libstagefright/codecs
parent3a8bad2ed0b463d1401c33b92ff30951fc0df3a4 (diff)
parentb220fe0e40bc3752b62a9576fc824634a16fc3ab (diff)
downloadframeworks_av-c4fd8b3b7fc24932626143ea45ab75192cc247c2.zip
frameworks_av-c4fd8b3b7fc24932626143ea45ab75192cc247c2.tar.gz
frameworks_av-c4fd8b3b7fc24932626143ea45ab75192cc247c2.tar.bz2
am b220fe0e: Merge "stagefright: fix fake-stride handling for H263 SW decoder" into lmp-dev
* commit 'b220fe0e40bc3752b62a9576fc824634a16fc3ab': stagefright: fix fake-stride handling for H263 SW decoder
Diffstat (limited to 'media/libstagefright/codecs')
-rw-r--r--media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp b/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp
index d98fa80..1f4b6fd 100644
--- a/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp
+++ b/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp
@@ -156,7 +156,8 @@ void SoftMPEG4::onQueueFilled(OMX_U32 /* portIndex */) {
(mMode == MODE_MPEG4) ? MPEG4_MODE : H263_MODE;
Bool success = PVInitVideoDecoder(
- mHandle, vol_data, &vol_size, 1, mWidth, mHeight, mode);
+ mHandle, vol_data, &vol_size, 1,
+ outputBufferWidth(), outputBufferHeight(), mode);
if (!success) {
ALOGW("PVInitVideoDecoder failed. Unsupported content?");
@@ -321,7 +322,7 @@ bool SoftMPEG4::handlePortSettingsChange() {
vol_data[0] = NULL;
if (!PVInitVideoDecoder(
- mHandle, vol_data, &vol_size, 1, mWidth, mHeight,
+ mHandle, vol_data, &vol_size, 1, outputBufferWidth(), outputBufferHeight(),
H263_MODE)) {
notify(OMX_EventError, OMX_ErrorUndefined, 0, NULL);
mSignalledError = true;