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

Commit 0b39e8c4 authored by James Dong's avatar James Dong Committed by Android Git Automerger
Browse files

am 2a55b596: Merge "libvideoeditor: fix cannot show some thumbnails in...

am 2a55b596: Merge "libvideoeditor: fix cannot show some thumbnails in storyboard or no frame display in PreviewRenderer surface after importing video"

* commit '2a55b596':
  libvideoeditor: fix cannot show some thumbnails in storyboard or no frame display in PreviewRenderer surface after importing video
parents bc9f3fc7 93c4d74d
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
     */