summaryrefslogtreecommitdiffstats
path: root/cmds/stagefright/SineSource.cpp
diff options
context:
space:
mode:
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;