From 5c7669385726b8aab6a554e31cc720e27dd446e8 Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Wed, 11 May 2016 16:26:44 +0100 Subject: 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 --- media/libstagefright/FFMPEGSoftCodec.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'media/libstagefright') 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) { -- cgit v1.1