X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fhap.h;h=bbeed11e32984a4293b5eedd987d304560d56702;hb=05a1ec3374c670c4823e8bb883fcc1e0773108a5;hp=74455f3dd9d6d4429eba8bd9da8e7159881ffbc9;hpb=9053b0885957328f52efca1670fda1df412753ed;p=ffmpeg diff --git a/libavcodec/hap.h b/libavcodec/hap.h index 74455f3dd9d..bbeed11e329 100644 --- a/libavcodec/hap.h +++ b/libavcodec/hap.h @@ -103,4 +103,10 @@ int ff_hap_set_chunk_count(HapContext *ctx, int count, int first_in_frame); */ av_cold void ff_hap_free_context(HapContext *ctx); +/* The first three bytes are the size of the section past the header, or zero + * if the length is stored in the next long word. The fourth byte in the first + * long word indicates the type of the current section. */ +int ff_hap_parse_section_header(GetByteContext *gbc, int *section_size, + enum HapSectionType *section_type); + #endif /* AVCODEC_HAP_H */