summaryrefslogtreecommitdiffstats
path: root/libvideoeditor
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2012-12-20 14:08:05 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-12-20 14:08:05 -0800
commit0b39e8c4dd563b59af4c78c86f735c8d9ef5e481 (patch)
tree1e8928dac45ec681a4b440d45a84598064d08647 /libvideoeditor
parentbc9f3fc7999a3222c559bc077fde1d5f5fdbc535 (diff)
parent93c4d74d3d6bd953ff711f865bfc5fc92b2888cb (diff)
downloadframeworks_av-0b39e8c4dd563b59af4c78c86f735c8d9ef5e481.zip
frameworks_av-0b39e8c4dd563b59af4c78c86f735c8d9ef5e481.tar.gz
frameworks_av-0b39e8c4dd563b59af4c78c86f735c8d9ef5e481.tar.bz2
am 2a55b596: Merge "libvideoeditor: fix cannot show some thumbnails in storyboard or no frame display in PreviewRenderer surface after importing video"
* commit '2a55b5964c6ae167cc1bc57eca5ca7a1c4aa452c': libvideoeditor: fix cannot show some thumbnails in storyboard or no frame display in PreviewRenderer surface after importing video
Diffstat (limited to 'libvideoeditor')
-rwxr-xr-xlibvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp b/libvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp
index 21d3c30..de91731 100755
--- a/libvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp
+++ b/libvideoeditor/vss/stagefrightshells/src/VideoEditorVideoDecoder.cpp
@@ -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
*/