31 if (first_in_frame == 1 && ctx->
chunk_count != count) {
63 *section_size = bytestream2_get_le24(gbc);
64 *section_type = bytestream2_get_byte(gbc);
66 if (*section_size == 0) {
70 *section_size = bytestream2_get_le32(gbc);
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int ff_hap_parse_section_header(GetByteContext *gbc, int *section_size, enum HapSectionType *section_type)
int ff_hap_set_chunk_count(HapContext *ctx, int count, int first_in_frame)
static av_always_inline unsigned int bytestream2_get_bytes_left(GetByteContext *g)
int av_reallocp_array(void *ptr, size_t nmemb, size_t size)
Allocate, reallocate, or free an array through a pointer to a pointer.
av_cold void ff_hap_free_context(HapContext *ctx)