Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c766938 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

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
parent eb6bd31d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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) {