diff options
author | Lajos Molnar <lajos@google.com> | 2013-05-28 10:11:35 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2013-05-28 16:22:02 -0700 |
commit | 6f505a4c0b91d88d2759fbd7e17d91f3ed715165 (patch) | |
tree | 396e40ad43db7979414951cbcff50c09fa3a2181 /media/libstagefright/MediaMuxer.cpp | |
parent | 6f6b31da6097f1d770137ebadac5023dd8b79413 (diff) | |
download | frameworks_av-6f505a4c0b91d88d2759fbd7e17d91f3ed715165.zip frameworks_av-6f505a4c0b91d88d2759fbd7e17d91f3ed715165.tar.gz frameworks_av-6f505a4c0b91d88d2759fbd7e17d91f3ed715165.tar.bz2 |
MediaMuxer: Remove SAMPLE_FLAG_SYNC flag
MediaMuxer.writeSampleData() uses MediaCodec.BufferInfo
objects to specify the flags, so use directly the MediaCodec
flags. This is more intuitive and avoids users of the
MediaMuxer API having to create translations between
MediaMuxer's and MediaCodec's flag constants.
Change-Id: I18e12a6839ffb2c63da62516a4dc4c94e8bb3d17
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 9169479
Diffstat (limited to 'media/libstagefright/MediaMuxer.cpp')
-rw-r--r-- | media/libstagefright/MediaMuxer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/MediaMuxer.cpp b/media/libstagefright/MediaMuxer.cpp index 388c65b..94ce5de 100644 --- a/media/libstagefright/MediaMuxer.cpp +++ b/media/libstagefright/MediaMuxer.cpp @@ -161,7 +161,7 @@ status_t MediaMuxer::writeSampleData(const sp<ABuffer> &buffer, size_t trackInde // Just set the kKeyDecodingTime as the presentation time for now. sampleMetaData->setInt64(kKeyDecodingTime, timeUs); - if (flags & SAMPLE_FLAG_SYNC) { + if (flags & MediaCodec::BUFFER_FLAG_SYNCFRAME) { sampleMetaData->setInt32(kKeyIsSyncFrame, true); } |