Home
last modified time | relevance | path

Searched refs:cryptosize (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDrm.cpp197 size_t cryptosize; in makeCryptoInfo() local
199 if (__builtin_mul_overflow(sizeof(CryptoPlugin::SubSample), numSubSamples, &cryptosize) || in makeCryptoInfo()
200 __builtin_add_overflow(cryptosize, sizeof(CryptoInfo), &cryptosize)) { in makeCryptoInfo()
205 CryptoInfo *ret = (CryptoInfo*) malloc(cryptosize); in makeCryptoInfo()
207 ALOGE("couldn't allocate %zu bytes", cryptosize); in makeCryptoInfo()
/frameworks/av/media/ndk/
DNdkMediaCodec.cpp986 size_t cryptosize; in AMediaCodecCryptoInfo_new() local
988 if (__builtin_mul_overflow(sizeof(size_t) * 2, numsubsamples, &cryptosize) || in AMediaCodecCryptoInfo_new()
989 __builtin_add_overflow(cryptosize, sizeof(AMediaCodecCryptoInfo), &cryptosize)) { in AMediaCodecCryptoInfo_new()
993 AMediaCodecCryptoInfo *ret = (AMediaCodecCryptoInfo*) malloc(cryptosize); in AMediaCodecCryptoInfo_new()
995 ALOGE("couldn't allocate %zu bytes", cryptosize); in AMediaCodecCryptoInfo_new()