Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/
DDRMExtractor.cpp166 size_t nalLength = 0; in read() local
171 nalLength = *data; in read()
174 nalLength = U16_AT(data); in read()
177 nalLength = ((size_t)data[0] << 16) | U16_AT(&data[1]); in read()
180 nalLength = U32_AT(data); in read()
189 size_t end = srcOffset + nalLength; in read()
199 if (nalLength == 0) { in read()
204 dstOffset + 4 > SIZE_MAX - nalLength || in read()
205 dstOffset + 4 + nalLength > (*buffer)->size()) { in read()
219 memcpy(&dstData[dstOffset], &decryptedDrmBuffer.data[srcOffset], nalLength); in read()
[all …]
DMPEG4Extractor.cpp4415 size_t nalLength = 0; in read() local
4417 nalLength = parseNALSize(&mSrcBuffer[srcOffset]); in read()
4419 isMalFormed = !isInRange((size_t)0u, size, srcOffset, nalLength); in read()
4429 if (nalLength == 0) { in read()
4434 dstOffset + 4 > SIZE_MAX - nalLength || in read()
4435 dstOffset + 4 + nalLength > mBuffer->size()) { in read()
4447 memcpy(&dstData[dstOffset], &mSrcBuffer[srcOffset], nalLength); in read()
4448 srcOffset += nalLength; in read()
4449 dstOffset += nalLength; in read()
4738 size_t nalLength = 0; in fragmentedRead() local
[all …]