5593d3a8ad8514d85e3c7398a3bab7eff53152dd |
|
07-Dec-2017 |
Ivan Lozano <ivanlozano@google.com> |
Fix integer sanitizer in clearkey. Calculating index sometimes causes an unsigned integer overflow. This throws a runtime error on integer sanitized builds. runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned int' Since this gets implicitly converted to ssize_t anyhow, make the conversion explicit before decrementing to avoid the overflow. Bug: 30969751 Test: Compiles. Change-Id: Ibd39c1ba0dc64673743672ffc70c22c09f8e828a
/frameworks/av/drm/mediacas/plugins/clearkey/ClearKeySessionLibrary.cpp
|
a78c1cc9773532b1f9d066ed8fa0d9414c1bb8bb |
|
01-Apr-2017 |
Chong Zhang <chz@google.com> |
MediaCas: combine openSession methods Combine the two openSession methods into one that doesn't take any arguments. This gives the client more flexibility on creating sessions efficiently. They can better decide whether to share one session for multiple streams, or create one session per stream. bug: 22804304 Change-Id: I9634f4dd4fc437229068103b54555cc28a818937
/frameworks/av/drm/mediacas/plugins/clearkey/ClearKeySessionLibrary.cpp
|
791a1a206b56be8601a6fffd2614926e67d64790 |
|
03-Jan-2017 |
Chong Zhang <chz@google.com> |
MediaCas: add two sets of test plugins - MockCasPlugin: does nothing other than API logging - ClearKeyCasPlugin: implement a clear key CAS that carries content keys in the clear in ECMs. It initializes from a test asset string with a valid id. It outputs to clear buffers. bug: 22804304 Change-Id: Ifc70b86c1ec80a45b75c7bdd1e558a59018ace5a
/frameworks/av/drm/mediacas/plugins/clearkey/ClearKeySessionLibrary.cpp
|