aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/hwcontext.c
diff options
context:
space:
mode:
authorEric Joyner <erj@erj.cc>2025-07-16 19:30:01 -0700
committerJames Almer <jamrial@gmail.com>2025-07-17 21:54:03 -0300
commitfb163eb28bd08a1f10538c189dc0ea625af46b75 (patch)
tree8391e8fcac4177c78dd78ece3be88e6c39c28ea5 /libavutil/hwcontext.c
parent25e710c61ebf4c6909276a894a77ea26b02e59ce (diff)
downloadffmpeg-fb163eb28bd08a1f10538c189dc0ea625af46b75.tar.gz
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 <erj@erj.cc> Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/hwcontext.c')
0 files changed, 0 insertions, 0 deletions