]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/hap.h
avcodec, avformat: Remove AVPacket.convergence_duration
[ffmpeg] / libavcodec / hap.h
index 74455f3dd9d6d4429eba8bd9da8e7159881ffbc9..00c3dbb32df7939fd31b0ea01b103559908308ec 100644 (file)
@@ -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 */