summaryrefslogtreecommitdiffstats
path: root/cmds/stagefright/SineSource.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-10-08 10:07:49 -0700
committerAndreas Huber <andih@google.com>2009-10-12 16:00:07 -0700
commit48c948b1137e7bbdb161b51908657ab72ac5e2da (patch)
tree93382f5cf363010d79ea26d9e44e6470821f1658 /cmds/stagefright/SineSource.cpp
parentd3eaeefb1bac68bc1fee91b794be2c2c3bea6d94 (diff)
downloadframeworks_av-48c948b1137e7bbdb161b51908657ab72ac5e2da.zip
frameworks_av-48c948b1137e7bbdb161b51908657ab72ac5e2da.tar.gz
frameworks_av-48c948b1137e7bbdb161b51908657ab72ac5e2da.tar.bz2
Change to a int64_t usecs representation for timestamps and duration throughout stagefright.
Diffstat (limited to 'cmds/stagefright/SineSource.cpp')
-rw-r--r--cmds/stagefright/SineSource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/stagefright/SineSource.cpp b/cmds/stagefright/SineSource.cpp
index e5a6ccb..e272a65 100644
--- a/cmds/stagefright/SineSource.cpp
+++ b/cmds/stagefright/SineSource.cpp
@@ -86,8 +86,8 @@ status_t SineSource::read(
x += k;
}
- buffer->meta_data()->setInt32(kKeyTimeUnits, mPhase);
- buffer->meta_data()->setInt32(kKeyTimeScale, mSampleRate);
+ buffer->meta_data()->setInt64(
+ kKeyTime, ((int64_t)mPhase * 1000000) / mSampleRate);
mPhase += numFramesPerBuffer;