diff --git a/libwvdrmengine/mediacrypto/aidl_src/WVCryptoPlugin.cpp b/libwvdrmengine/mediacrypto/aidl_src/WVCryptoPlugin.cpp index 4e9a39d1..d2a26ef0 100644 --- a/libwvdrmengine/mediacrypto/aidl_src/WVCryptoPlugin.cpp +++ b/libwvdrmengine/mediacrypto/aidl_src/WVCryptoPlugin.cpp @@ -147,8 +147,7 @@ SharedBufferBase::~SharedBufferBase() { uint8_t* srcPtr = nullptr; void* destPtr = nullptr; // Convert parameters to the form the CDM wishes to consume them in. - const KeyId cryptoKey(reinterpret_cast(in_args.keyId.data()), - wvcdm::KEY_ID_SIZE); + const KeyId cryptoKey(in_args.keyId.begin(), in_args.keyId.end()); // start scope for lock_guard {