summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2011-01-07 14:56:34 -0800
committerJames Dong <jdong@google.com>2011-01-07 14:57:34 -0800
commitc29dd6f4ccd7ea7e41921d48d03d26e159aeaae4 (patch)
treefabd347a70dc4c11a24ad3c5216920ab4f667c2d /media
parent11f8109ad8646d3acd9a0987613229cde59d52c1 (diff)
downloadframeworks_av-c29dd6f4ccd7ea7e41921d48d03d26e159aeaae4.zip
frameworks_av-c29dd6f4ccd7ea7e41921d48d03d26e159aeaae4.tar.gz
frameworks_av-c29dd6f4ccd7ea7e41921d48d03d26e159aeaae4.tar.bz2
Fix uninitialized rect structure for retrieving rect cropping information from decoder
o This patch is from NV. bug - 3333254 Change-Id: I02bc26af464ea0bc9ad9f2e111474e8398c67220
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/OMXCodec.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index 8efd963..51f2b80 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -3923,6 +3923,8 @@ void OMXCodec::initOutputFormat(const sp<MetaData> &inputFormat) {
if (!mIsEncoder) {
OMX_CONFIG_RECTTYPE rect;
+ InitOMXParams(&rect);
+ rect.nPortIndex = kPortIndexOutput;
status_t err =
mOMX->getConfig(
mNode, OMX_IndexConfigCommonOutputCrop,