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

Commit ff65330b authored by James Dong's avatar James Dong
Browse files

Fix green frame issue

When the transition clip is generated: two clips in general are involved.
The second clip was assigned the incorrect effect number when a transition was coupled with a color effect

o patch contributed by Hong Teng <hongteng@nxp.com>
o related-to-bug: 5713461

Change-Id: I61b497620264692b331da8b8e7753240edc5d1aa
parent 0a684cc5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1182,8 +1182,6 @@ M4OSA_ERR M4VSS3GPP_intVPP( M4VPP_Context pContext, M4VIFI_ImagePlane *pPlaneIn,
        * Render Clip1 */
        if( pC->pC1->isRenderDup == M4OSA_FALSE )
        {
            pC->bIssecondClip = M4OSA_FALSE;

            err = M4VSS3GPP_intRenderFrameWithEffect(pC, pC->pC1, ts, M4OSA_TRUE,
                                                pTempPlaneClip1, pTemp1,
                                                pPlaneOut);
@@ -3594,9 +3592,11 @@ M4OSA_ERR M4VSS3GPP_intRenderFrameWithEffect(M4VSS3GPP_InternalEditContext *pC,
        }

        if (bIsClip1 == M4OSA_TRUE) {
            pC->bIssecondClip = M4OSA_FALSE;
            numEffects = pC->nbActiveEffects;
        } else {
            numEffects = pC->nbActiveEffects1;
            pC->bIssecondClip = M4OSA_TRUE;
        }

        if ( numEffects > 0) {