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
commit9c891ca36a7f2acecd70d41ff39a2025048bb0b1 (patch)
treed139467a99bacfa604360d4ebb642e342cb10519 /libvideoeditor
parent68c3de899f822acf3c735c681d206e852ad3821f (diff)
parent2a55b5964c6ae167cc1bc57eca5ca7a1c4aa452c (diff)
downloadframeworks_av-9c891ca36a7f2acecd70d41ff39a2025048bb0b1.zip
frameworks_av-9c891ca36a7f2acecd70d41ff39a2025048bb0b1.tar.gz
frameworks_av-9c891ca36a7f2acecd70d41ff39a2025048bb0b1.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
*/