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/matroska | |
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/matroska')
-rw-r--r-- | media/libstagefright/matroska/MatroskaExtractor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libstagefright/matroska/MatroskaExtractor.cpp b/media/libstagefright/matroska/MatroskaExtractor.cpp index 3739be1..71f6587 100644 --- a/media/libstagefright/matroska/MatroskaExtractor.cpp +++ b/media/libstagefright/matroska/MatroskaExtractor.cpp @@ -296,6 +296,7 @@ status_t MatroskaSource::read( MediaBuffer *buffer = new MediaBuffer(size + 2); buffer->meta_data()->setInt64(kKeyTime, timeUs); + buffer->meta_data()->setInt32(kKeyIsSyncFrame, block->IsKey()); long res = block->Read( mExtractor->mReader, (unsigned char *)buffer->data() + 2); |