diff options
author | Andreas Huber <andih@google.com> | 2010-08-06 14:13:10 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-08-06 15:46:17 -0700 |
commit | ad98d383a04fce08a147b200e23b12f12b2681a3 (patch) | |
tree | afcdc073e7d42922386ee90989b0a5eadcdeaa8f /media/libstagefright/AMRExtractor.cpp | |
parent | 261aaa16a2f469d7f3d3b56f1a45432460ee4dba (diff) | |
download | frameworks_base-ad98d383a04fce08a147b200e23b12f12b2681a3.zip frameworks_base-ad98d383a04fce08a147b200e23b12f12b2681a3.tar.gz frameworks_base-ad98d383a04fce08a147b200e23b12f12b2681a3.tar.bz2 |
Support for communicating if a buffer read from the _extractor_ is a sync sample or not.
Change-Id: Ie71506224d937cfff1fa1273bfac31c47db8845f
related-to-bug: 2900534
Diffstat (limited to 'media/libstagefright/AMRExtractor.cpp')
-rw-r--r-- | media/libstagefright/AMRExtractor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libstagefright/AMRExtractor.cpp b/media/libstagefright/AMRExtractor.cpp index 9fc1d27..70af2da 100644 --- a/media/libstagefright/AMRExtractor.cpp +++ b/media/libstagefright/AMRExtractor.cpp @@ -263,6 +263,7 @@ status_t AMRSource::read( buffer->set_range(0, frameSize); buffer->meta_data()->setInt64(kKeyTime, mCurrentTimeUs); + buffer->meta_data()->setInt32(kKeyIsSyncFrame, 1); mOffset += frameSize; mCurrentTimeUs += 20000; // Each frame is 20ms |