summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/AMRExtractor.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 /media/libstagefright/AMRExtractor.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 'media/libstagefright/AMRExtractor.cpp')
-rw-r--r--media/libstagefright/AMRExtractor.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/media/libstagefright/AMRExtractor.cpp b/media/libstagefright/AMRExtractor.cpp
index 8d85ce2..1660351 100644
--- a/media/libstagefright/AMRExtractor.cpp
+++ b/media/libstagefright/AMRExtractor.cpp
@@ -201,10 +201,7 @@ status_t AMRSource::read(
}
buffer->set_range(0, frameSize);
- buffer->meta_data()->setInt32(
- kKeyTimeUnits, (mCurrentTimeUs + 500) / 1000);
- buffer->meta_data()->setInt32(
- kKeyTimeScale, 1000);
+ buffer->meta_data()->setInt64(kKeyTime, mCurrentTimeUs);
mOffset += frameSize;
mCurrentTimeUs += 20000; // Each frame is 20ms