X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fhap.h;h=00c3dbb32df7939fd31b0ea01b103559908308ec;hb=df6b44182e1f52e6982a55e9720d9e46620a0d8a;hp=74455f3dd9d6d4429eba8bd9da8e7159881ffbc9;hpb=6dea6c4b9718132fbe32984942bcafaeb2712f73;p=ffmpeg diff --git a/libavcodec/hap.h b/libavcodec/hap.h index 74455f3dd9d..00c3dbb32df 100644 --- a/libavcodec/hap.h +++ b/libavcodec/hap.h @@ -52,7 +52,7 @@ enum HapSectionType { typedef struct HapChunk { enum HapCompressor compressor; - int compressed_offset; + uint32_t compressed_offset; size_t compressed_size; int uncompressed_offset; size_t uncompressed_size; @@ -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 */