MCPcopy Create free account
hub / github.com/AOMediaCodec/libavif / avifROStreamReadBoxHeader

Function avifROStreamReadBoxHeader

src/stream.c:297–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297avifBool avifROStreamReadBoxHeader(avifROStream * stream, avifBoxHeader * header)
298{
299 AVIF_CHECK(avifROStreamReadBoxHeaderPartial(stream, header, /*topLevel=*/AVIF_FALSE));
300 if (header->size > avifROStreamRemainingBytes(stream)) {
301 avifDiagnosticsPrintf(stream->diag, "%s: Child box too large, possibly truncated data", stream->diagContext);
302 return AVIF_FALSE;
303 }
304 return AVIF_TRUE;
305}
306
307avifBool avifROStreamReadVersionAndFlags(avifROStream * stream, uint8_t * version, uint32_t * flags)
308{

Callers 15

avifParseItemInfoBoxFunction · 0.85
avifParseGroupsListBoxFunction · 0.85
avifParseMetaBoxFunction · 0.85
avifParseSampleTableBoxFunction · 0.85
avifParseMediaBoxFunction · 0.85
avifTrackReferenceBoxFunction · 0.85
avifParseEditBoxFunction · 0.85

Calls 3

avifDiagnosticsPrintfFunction · 0.85

Tested by 1

TESTFunction · 0.68