summaryrefslogtreecommitdiffstats
path: root/libvideoeditor
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2011-08-29 20:27:54 +0800
committerChih-Chung Chang <chihchung@google.com>2011-08-29 20:27:54 +0800
commitd125366181feab7e45905a8051c94ab5a845e503 (patch)
treebdb9806d5ac829adac425a1b1db8ce941dd6a0ba /libvideoeditor
parent5f9cd08076587935f798b2b2eba4aa202362f532 (diff)
downloadframeworks_av-d125366181feab7e45905a8051c94ab5a845e503.zip
frameworks_av-d125366181feab7e45905a8051c94ab5a845e503.tar.gz
frameworks_av-d125366181feab7e45905a8051c94ab5a845e503.tar.bz2
Fix 5200858: we need to pass timestamp to render correct frames.
Change-Id: I262cefabea87f75883bcd074370deae054df3e88
Diffstat (limited to 'libvideoeditor')
-rwxr-xr-xlibvideoeditor/vss/src/M4VSS3GPP_EditVideo.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libvideoeditor/vss/src/M4VSS3GPP_EditVideo.c b/libvideoeditor/vss/src/M4VSS3GPP_EditVideo.c
index b880dc3..3dd837a 100755
--- a/libvideoeditor/vss/src/M4VSS3GPP_EditVideo.c
+++ b/libvideoeditor/vss/src/M4VSS3GPP_EditVideo.c
@@ -98,6 +98,7 @@ static M4OSA_ERR M4VSS3GPP_intSetYuv420PlaneFromARGB888 (
static M4OSA_ERR M4VSS3GPP_intRenderFrameWithEffect(
M4VSS3GPP_InternalEditContext *pC,
M4VSS3GPP_ClipContext* pClipCtxt,
+ M4_MediaTime ts,
M4OSA_Bool bIsClip1,
M4VIFI_ImagePlane *pResizePlane,
M4VIFI_ImagePlane *pPlaneNoResize,
@@ -1188,7 +1189,7 @@ M4OSA_ERR M4VSS3GPP_intVPP( M4VPP_Context pContext, M4VIFI_ImagePlane *pPlaneIn,
{
pC->bIssecondClip = M4OSA_FALSE;
- err = M4VSS3GPP_intRenderFrameWithEffect(pC, pC->pC1, M4OSA_TRUE,
+ err = M4VSS3GPP_intRenderFrameWithEffect(pC, pC->pC1, ts, M4OSA_TRUE,
pTempPlaneClip1, pTemp1,
pPlaneOut);
if ((M4NO_ERROR != err) &&
@@ -1228,7 +1229,7 @@ M4OSA_ERR M4VSS3GPP_intVPP( M4VPP_Context pContext, M4VIFI_ImagePlane *pPlaneIn,
if( pC->pC2->isRenderDup == M4OSA_FALSE )
{
- err = M4VSS3GPP_intRenderFrameWithEffect(pC, pC->pC2, M4OSA_FALSE,
+ err = M4VSS3GPP_intRenderFrameWithEffect(pC, pC->pC2, ts, M4OSA_FALSE,
pTempPlaneClip2, pTemp2,
pPlaneOut);
if ((M4NO_ERROR != err) &&
@@ -3287,6 +3288,7 @@ M4OSA_ERR M4VSS3GPP_intSetYuv420PlaneFromARGB888 (
M4OSA_ERR M4VSS3GPP_intRenderFrameWithEffect(M4VSS3GPP_InternalEditContext *pC,
M4VSS3GPP_ClipContext* pClipCtxt,
+ M4_MediaTime ts,
M4OSA_Bool bIsClip1,
M4VIFI_ImagePlane *pResizePlane,
M4VIFI_ImagePlane *pPlaneNoResize,
@@ -3294,7 +3296,6 @@ M4OSA_ERR M4VSS3GPP_intRenderFrameWithEffect(M4VSS3GPP_InternalEditContext *pC,
M4OSA_ERR err = M4NO_ERROR;
M4OSA_UInt8 numEffects = 0;
- M4_MediaTime ts;
M4VIFI_ImagePlane *pDecoderRenderFrame = M4OSA_NULL;
/**
@@ -3340,7 +3341,7 @@ M4OSA_ERR M4VSS3GPP_intRenderFrameWithEffect(M4VSS3GPP_InternalEditContext *pC,
err = pClipCtxt->ShellAPI.m_pVideoDecoder->m_pFctRender(
pClipCtxt->pViDecCtxt, &ts,
pClipCtxt->m_pPreResizeFrame, M4OSA_TRUE);
- }
+ }
}
if (M4NO_ERROR != err) {