diff options
author | Lajos Molnar <lajos@google.com> | 2014-08-14 19:54:08 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2014-08-14 19:56:58 -0700 |
commit | 732c6d955524ead6c31e6e1bafbd41ea4cee525d (patch) | |
tree | 512bb207b9013da6f9c728f77a3070a7a5b99638 /media/libmedia | |
parent | 261562316c1b652ea697c99c0f24a54112bd0385 (diff) | |
download | frameworks_av-732c6d955524ead6c31e6e1bafbd41ea4cee525d.zip frameworks_av-732c6d955524ead6c31e6e1bafbd41ea4cee525d.tar.gz frameworks_av-732c6d955524ead6c31e6e1bafbd41ea4cee525d.tar.bz2 |
stagefright/media: add support for codec features with text value
Bug: 11990470
Change-Id: I7600d999c5f4b6821d825d25fa7e8a2bb5a80c46
Diffstat (limited to 'media/libmedia')
-rw-r--r-- | media/libmedia/MediaCodecInfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libmedia/MediaCodecInfo.cpp b/media/libmedia/MediaCodecInfo.cpp index 446c582..7b4c4e2 100644 --- a/media/libmedia/MediaCodecInfo.cpp +++ b/media/libmedia/MediaCodecInfo.cpp @@ -257,4 +257,10 @@ void MediaCodecInfo::addFeature(const AString &key, int32_t value) { mCurrentCaps->mDetails->setInt32(tag.c_str(), value); } +void MediaCodecInfo::addFeature(const AString &key, const char *value) { + AString tag = "feature-"; + tag.append(key); + mCurrentCaps->mDetails->setString(tag.c_str(), value); +} + } // namespace android |