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

Commit e41446b5 authored by beanz's avatar beanz
Browse files

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


libvideoeditor: fix cannot show some thumbnails in storyboard or no frame display in PreviewRenderer surface after importing video

1. this is caused mFrameIntervalMs isn't assigned for use-software-codec case
2. without the assingment, some decoded frames will not be copied to the buffer queue of VideoEditorVideoDecoder

Change-Id: I578954e38958ebac8f258300e60b8ddf60e50521
Signed-off-by: default avatarbeanz <beanz@marvell.com>
parent 33cf49b1
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
     */