diff options
author | Vignesh Venkatasubramanian <vigneshv-at-google.com@ffmpeg.org> | 2022-07-28 11:25:16 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2022-08-09 13:15:55 -0700 |
commit | d931554f668186729bf290ed9afa6e9a4417328b (patch) | |
tree | 1ad7414eaa2956faf96baf28ff4c91eb57f892ca /libavformat/isom.h | |
parent | 05225180bea208dfd81efac327e429711a963697 (diff) |
avformat/mov: Rework the AVIF parser to handle multiple items
Stores the item ids of all the items found in the file and
processes the primary item at the end of the meta box. This patch
does not change any behavior. It sets up the code for parsing
alpha channel (and possibly images with 'grid') in follow up
patches.
Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: James Zern <jzern@google.com>
Diffstat (limited to 'libavformat/isom.h')
-rw-r--r-- | libavformat/isom.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/isom.h b/libavformat/isom.h index f05c2d9c28..9d8646d2ea 100644 --- a/libavformat/isom.h +++ b/libavformat/isom.h @@ -318,6 +318,12 @@ typedef struct MOVContext { uint32_t max_stts_delta; int is_still_picture_avif; int primary_item_id; + struct { + int item_id; + int extent_length; + int64_t extent_offset; + } *avif_info; + int avif_info_size; } MOVContext; int ff_mp4_read_descr_len(AVIOContext *pb); |