MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / cbs_alloc_content

Function cbs_alloc_content

libavcodec/cbs.c:936–943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

934}
935
936static void *cbs_alloc_content(CodedBitstreamUnitTypeDescriptor *desc)
937{
938 return av_refstruct_alloc_ext_c(desc->content_size, 0,
939 (AVRefStructOpaque){ .c = desc },
940 desc->content_type == CBS_CONTENT_TYPE_COMPLEX
941 ? desc->type.complex.content_free
942 : cbs_default_free_unit_content);
943}
944
945int CBS_FUNC(alloc_unit_content)(CodedBitstreamContext *ctx,
946 CodedBitstreamUnit *unit)

Callers 2

Calls 1

av_refstruct_alloc_ext_cFunction · 0.85

Tested by

no test coverage detected