summaryrefslogtreecommitdiffstats
path: root/drm
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2018-11-05 01:13:15 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-11-05 01:13:15 +0000
commitb8fd364d0a0e23317c1fbc5055800bbeee3ba349 (patch)
tree6681622b5e991ac4993bfa11527eb50ab0e4e2ee /drm
parent814b68373d4b093c214efd7876fcc71d4ab4b067 (diff)
parent3feee7ee05ab0227435515a07d3bb5907f17715a (diff)
downloadframeworks_av-b8fd364d0a0e23317c1fbc5055800bbeee3ba349.tar.gz
frameworks_av-b8fd364d0a0e23317c1fbc5055800bbeee3ba349.tar.bz2
frameworks_av-b8fd364d0a0e23317c1fbc5055800bbeee3ba349.zip
Merge "Adapt to google::protobuf::uint64 type change"
Diffstat (limited to 'drm')
-rw-r--r--drm/mediacas/plugins/clearkey/ClearKeyFetcher.cpp2
-rw-r--r--drm/mediacas/plugins/clearkey/ecm.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/drm/mediacas/plugins/clearkey/ClearKeyFetcher.cpp b/drm/mediacas/plugins/clearkey/ClearKeyFetcher.cpp
index eaa3390d0b..cb69f911ff 100644
--- a/drm/mediacas/plugins/clearkey/ClearKeyFetcher.cpp
+++ b/drm/mediacas/plugins/clearkey/ClearKeyFetcher.cpp
@@ -89,7 +89,7 @@ status_t ClearKeyFetcher::ObtainKey(const sp<ABuffer>& buffer,
// asset_id change. If it sends an EcmContainer with 2 Ecms with different
// asset_ids (old and new) then it might be best to prefetch the Emm.
if ((asset_.id() != 0) && (*asset_id != asset_.id())) {
- ALOGW("Asset_id change from %llu to %" PRIu64, asset_.id(), *asset_id);
+ ALOGW("Asset_id change from %" PRIu64 " to %" PRIu64, asset_.id(), *asset_id);
asset_.Clear();
}
diff --git a/drm/mediacas/plugins/clearkey/ecm.cpp b/drm/mediacas/plugins/clearkey/ecm.cpp
index 9fde13aea1..b3b521807e 100644
--- a/drm/mediacas/plugins/clearkey/ecm.cpp
+++ b/drm/mediacas/plugins/clearkey/ecm.cpp
@@ -17,6 +17,8 @@
//#define LOG_NDEBUG 0
#define LOG_TAG "ecm"
+#include <inttypes.h>
+
#include "ecm.h"
#include "ecm_generator.h"
#include "protos/license_protos.pb.h"
@@ -76,7 +78,7 @@ status_t Ecm::Decrypt(
return status;
}
if (asset.id() != asset_from_emm.id()) {
- ALOGE("Asset_id from Emm (%llu) does not match asset_id from Ecm (%llu).",
+ ALOGE("Asset_id from Emm (%" PRIu64 ") does not match asset_id from Ecm (%" PRIu64 ").",
asset_from_emm.id(), asset.id());
return CLEARKEY_STATUS_INVALID_PARAMETER;
}