From f869e54d228d43adb3b1e0026a48273befe443eb Mon Sep 17 00:00:00 2001 From: Martin Vignali Date: Sun, 11 Mar 2018 19:15:56 +0100 Subject: avcodec/hap : move parse_section_header to hap.c in order to be use by new bsf filter --- libavcodec/hap.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavcodec/hap.h') diff --git a/libavcodec/hap.h b/libavcodec/hap.h index 74455f3dd9..bbeed11e32 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 */ -- cgit v1.2.1