summaryrefslogtreecommitdiffstats
path: root/media/libstagefright
diff options
context:
space:
mode:
authorRicardo Cerqueira <ricardo@cyngn.com>2016-05-11 16:26:44 +0100
committerRicardo Cerqueira <ricardo@cyngn.com>2016-05-11 16:30:01 +0100
commit5c7669385726b8aab6a554e31cc720e27dd446e8 (patch)
treeeec86ada4a55f1b062bcea02b333135f75f51098 /media/libstagefright
parenteb6bd31da259ea399a8bb5b13e83929aaf9e3ac3 (diff)
downloadframeworks_av-5c7669385726b8aab6a554e31cc720e27dd446e8.zip
frameworks_av-5c7669385726b8aab6a554e31cc720e27dd446e8.tar.gz
frameworks_av-5c7669385726b8aab6a554e31cc720e27dd446e8.tar.bz2
FFMPEGSoftCodec: Initialize the OMX param struct before using it
Make sure all the items in the port param config are filled out, not just those we expect to use. Ref: CYNGNOS-2797 Change-Id: I9271a83fc6496cfe5ad14e45841cd8a05ffece30
Diffstat (limited to 'media/libstagefright')
-rw-r--r--media/libstagefright/FFMPEGSoftCodec.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libstagefright/FFMPEGSoftCodec.cpp b/media/libstagefright/FFMPEGSoftCodec.cpp
index 26afd89..f981c71 100644
--- a/media/libstagefright/FFMPEGSoftCodec.cpp
+++ b/media/libstagefright/FFMPEGSoftCodec.cpp
@@ -325,6 +325,7 @@ status_t FFMPEGSoftCodec::setVideoFormat(
int32_t mode = 0;
OMX_QCOM_PARAM_PORTDEFINITIONTYPE portFmt;
+ InitOMXParams(&portFmt);
portFmt.nPortIndex = kPortIndexInput;
if (msg->findInt32("use-arbitrary-mode", &mode) && mode) {