32 if (first_in_frame == 1 &&
ctx->chunk_count != count) {
39 ctx->chunk_count = count;
41 }
else if (
ctx->chunk_count != count) {
64 *section_size = bytestream2_get_le24(gbc);
65 *section_type = bytestream2_get_byte(gbc);
67 if (*section_size == 0) {
71 *section_size = bytestream2_get_le32(gbc);
static AVFormatContext * ctx
static av_always_inline int bytestream2_get_bytes_left(const GetByteContext *g)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int av_reallocp_array(void *ptr, size_t nmemb, size_t size)
Allocate, reallocate an array through a pointer to a pointer.
av_cold void ff_hap_free_context(HapContext *ctx)
int ff_hap_set_chunk_count(HapContext *ctx, int count, int first_in_frame)
int ff_hap_parse_section_header(GetByteContext *gbc, int *section_size, enum HapSectionType *section_type)
Memory handling functions.