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

Commit 3aaa699a authored by Lajos Molnar's avatar Lajos Molnar
Browse files

stagefright: ACodec: query color format support on specific port

This field was uninitialized prior.
Some components did not validate this field resulting in an infinite
query.

Bug: 27114487
Change-Id: Ic262482a17e675c4e5f198661fad96269cf1febc
parent 2c7994c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7066,7 +7066,7 @@ status_t ACodec::queryCapabilities(
        // prefix "flexible" standard ones with the flexible equivalent
        OMX_VIDEO_PARAM_PORTFORMATTYPE portFormat;
        InitOMXParams(&portFormat);
        param.nPortIndex = isEncoder ? kPortIndexInput : kPortIndexOutput;
        portFormat.nPortIndex = isEncoder ? kPortIndexInput : kPortIndexOutput;
        Vector<uint32_t> supportedColors; // shadow copy to check for duplicates
        for (portFormat.nIndex = 0;; ++portFormat.nIndex)  {
            status_t err = omx->getParameter(