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

Commit 7c340a4b authored by YuanQY's avatar YuanQY Committed by Ricardo Cerqueira
Browse files

libstagefright: Fix incorrectness nPortIndex value for QueryCodec

                The query index is wrong, it will make a death loop in
my ME722 when get resource thumbnail for MPEG4 video.

Change-Id: I64532156e762b847a8eae59560fb828549c29519
parent 821695d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4831,7 +4831,7 @@ status_t QueryCodec(
    // Color format query
    OMX_VIDEO_PARAM_PORTFORMATTYPE portFormat;
    InitOMXParams(&portFormat);
    portFormat.nPortIndex = !isEncoder ? 1 : 0;
    portFormat.nPortIndex = !isEncoder ? 0 : 1;
    for (portFormat.nIndex = 0;; ++portFormat.nIndex)  {
        err = omx->getParameter(
                node, OMX_IndexParamVideoPortFormat,