Searched refs:cryptosize (Results 1 – 2 of 2) sorted by relevance
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDrm.cpp | 246 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/ |
D | NdkMediaCodec.cpp | 820 size_t cryptosize; in AMediaCodecCryptoInfo_new() local 822 if (__builtin_mul_overflow(sizeof(size_t) * 2, numsubsamples, &cryptosize) || in AMediaCodecCryptoInfo_new() 823 __builtin_add_overflow(cryptosize, sizeof(AMediaCodecCryptoInfo), &cryptosize)) { in AMediaCodecCryptoInfo_new() 827 AMediaCodecCryptoInfo *ret = (AMediaCodecCryptoInfo*) malloc(cryptosize); in AMediaCodecCryptoInfo_new() 829 ALOGE("couldn't allocate %zu bytes", cryptosize); in AMediaCodecCryptoInfo_new()
|