summaryrefslogtreecommitdiffstats
path: root/cmds/stagefright/sf2.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-03-26 11:13:27 -0700
committerAndreas Huber <andih@google.com>2012-03-26 11:24:04 -0700
commited3e3e046840d5bf1ca84a8c0cc097425e89d6d6 (patch)
tree99d5bb3a2f48f9a3ba3eaaf17e630b589e97bef1 /cmds/stagefright/sf2.cpp
parentcc1110dc92e53e9cc0afbb043e6ef8295bd9c5d5 (diff)
downloadframeworks_av-ed3e3e046840d5bf1ca84a8c0cc097425e89d6d6.zip
frameworks_av-ed3e3e046840d5bf1ca84a8c0cc097425e89d6d6.tar.gz
frameworks_av-ed3e3e046840d5bf1ca84a8c0cc097425e89d6d6.tar.bz2
Provisional support for secure decryption of media streams.
Change-Id: Ib3982a9c960bfdb0cb7e1b174440b141b194cfbe
Diffstat (limited to 'cmds/stagefright/sf2.cpp')
-rw-r--r--cmds/stagefright/sf2.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmds/stagefright/sf2.cpp b/cmds/stagefright/sf2.cpp
index 64df5d1..3bbfbdc 100644
--- a/cmds/stagefright/sf2.cpp
+++ b/cmds/stagefright/sf2.cpp
@@ -287,6 +287,11 @@ private:
msg->setInt32("channel-count", numChannels);
msg->setInt32("sample-rate", sampleRate);
+
+ int32_t isADTS;
+ if (meta->findInt32(kKeyIsADTS, &isADTS) && isADTS != 0) {
+ msg->setInt32("is-adts", true);
+ }
}
uint32_t type;