Home
last modified time | relevance | path

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

/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDrm.cpp246 size_t cryptosize; in makeCryptoInfo() local
248 if (__builtin_mul_overflow(sizeof(CryptoPlugin::SubSample), numSubSamples, &cryptosize) || in makeCryptoInfo()
249 __builtin_add_overflow(cryptosize, sizeof(CryptoInfo), &cryptosize)) { in makeCryptoInfo()
254 CryptoInfo *ret = (CryptoInfo*) malloc(cryptosize); in makeCryptoInfo()
256 ALOGE("couldn't allocate %zu bytes", cryptosize); in makeCryptoInfo()
/frameworks/av/media/ndk/
DNdkMediaCodec.cpp814 size_t cryptosize; in AMediaCodecCryptoInfo_new() local
816 if (__builtin_mul_overflow(sizeof(size_t) * 2, numsubsamples, &cryptosize) || in AMediaCodecCryptoInfo_new()
817 __builtin_add_overflow(cryptosize, sizeof(AMediaCodecCryptoInfo), &cryptosize)) { in AMediaCodecCryptoInfo_new()
821 AMediaCodecCryptoInfo *ret = (AMediaCodecCryptoInfo*) malloc(cryptosize); in AMediaCodecCryptoInfo_new()
823 ALOGE("couldn't allocate %zu bytes", cryptosize); in AMediaCodecCryptoInfo_new()