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 | 8bf59e735760af0b6a85747fd90bf8cf1e5388d7 (patch) | |
tree | e5225adeb9422fffd7eeee833315f1c4a979a446 /media/libstagefright/AMRExtractor.cpp | |
parent | 2500c2d6ff55c26452ccba925a9f8b86b926f43e (diff) | |
download | frameworks_av-8bf59e735760af0b6a85747fd90bf8cf1e5388d7.zip frameworks_av-8bf59e735760af0b6a85747fd90bf8cf1e5388d7.tar.gz frameworks_av-8bf59e735760af0b6a85747fd90bf8cf1e5388d7.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 |