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

Commit 93c4d74d authored by James Dong's avatar James Dong Committed by Gerrit Code Review
Browse files

Merge "libvideoeditor: fix cannot show some thumbnails in storyboard or no...

Merge "libvideoeditor: fix cannot show some thumbnails in storyboard or no frame display in PreviewRenderer surface after importing video"
parents 9e69d42d 53500667
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1149,6 +1149,12 @@ M4OSA_ERR VideoEditorVideoSoftwareDecoder_create(M4OSA_Context *pContext,
    pDecShellContext->mLastOutputCts     = -1;
    pDecShellContext->m_pDecBufferPool   = M4OSA_NULL;

    // Calculate the interval between two video frames.
    if(pDecShellContext->m_pVideoStreamhandler->m_averageFrameRate > 0){
        pDecShellContext->mFrameIntervalMs =
            1000.0 / pDecShellContext->m_pVideoStreamhandler->m_averageFrameRate;
    }

    /**
     * StageFright graph building
     */