diff options
author | Eric Joyner <[email protected]> | 2025-07-16 19:30:01 -0700 |
---|---|---|
committer | James Almer <[email protected]> | 2025-07-17 21:54:03 -0300 |
commit | fb163eb28bd08a1f10538c189dc0ea625af46b75 (patch) | |
tree | 8391e8fcac4177c78dd78ece3be88e6c39c28ea5 /libavformat/a64.c | |
parent | 25e710c61ebf4c6909276a894a77ea26b02e59ce (diff) |
avformat/mov: Support multiple thumbnails in HEIF
Prevents ffmpeg/ffprobe from erroring out when reading an HEIF that
contains multiple hvcC thumbnails (e.g. from a Nikon Z6III camera).
Before, move_read_iref_thmb() would always override the stored
thmb_item_id in the MOVContext with each new read thumbnail, causing a
stream and item_id mismatch later in mov_parse_heif_items(), resulting
in the "HEIF thumbnail doesn't reference a stream" error message.
To solve this,
- Turn thmb_item_id into an array of IDs because multiple thumbnails can
exist
- Change check in mov_parse_heif_items() to compare against all stored
thumbnail IDs to see if any item missing a stream is in the list of
thumbnail IDs.
Signed-off-by: Eric Joyner <[email protected]>
Reviewed-by: Lynne <[email protected]>
Signed-off-by: James Almer <[email protected]>
Diffstat (limited to 'libavformat/a64.c')
0 files changed, 0 insertions, 0 deletions