From 8bf59e735760af0b6a85747fd90bf8cf1e5388d7 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Fri, 6 Aug 2010 14:13:10 -0700 Subject: Support for communicating if a buffer read from the _extractor_ is a sync sample or not. Change-Id: Ie71506224d937cfff1fa1273bfac31c47db8845f related-to-bug: 2900534 --- media/libstagefright/matroska/MatroskaExtractor.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'media/libstagefright/matroska') 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); -- cgit v1.1