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
diff --git a/libvideoeditor/vss/src/M4VSS3GPP_EditVideo.c b/libvideoeditor/vss/src/M4VSS3GPP_EditVideo.c
index ee69fd3..59d57e5 100755
--- a/libvideoeditor/vss/src/M4VSS3GPP_EditVideo.c
+++ b/libvideoeditor/vss/src/M4VSS3GPP_EditVideo.c
@@ -1182,8 +1182,6 @@
* 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 @@
}
if (bIsClip1 == M4OSA_TRUE) {
+ pC->bIssecondClip = M4OSA_FALSE;
numEffects = pC->nbActiveEffects;
} else {
numEffects = pC->nbActiveEffects1;
+ pC->bIssecondClip = M4OSA_TRUE;
}
if ( numEffects > 0) {