summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Joyner <[email protected]>2025-07-16 19:30:02 -0700
committerJames Almer <[email protected]>2025-07-17 21:54:03 -0300
commit291ec0faf3b1394335ad26bc761512c601fbc99e (patch)
tree2dbca969c53a136e871ed06a602bd26e6a0f3fff
parentfb163eb28bd08a1f10538c189dc0ea625af46b75 (diff)
avformat/mov: Enable jpeg streams in HEIF MOVContext
Nikon HEIFs from a camera or NX studio include a small jpeg thumbnail in addition to the expected HEVC thumbnails; allowing jpegs allows all thumbnails to have an associated stream for Nikon HEIF files. With this, Nikon HEIFs can finally be decoded without failing and the thumbnails can be extracted into their own files. Signed-off-by: Eric Joyner <[email protected]> Reviewed-by: Lynne <[email protected]> Signed-off-by: James Almer <[email protected]>
-rw-r--r--libavformat/mov.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 85addddf09..836bdfb4e1 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -8840,6 +8840,7 @@ static int mov_read_infe(MOVContext *c, AVIOContext *pb, MOVAtom atom, int idx)
switch (item_type) {
case MKTAG('a','v','0','1'):
+ case MKTAG('j','p','e','g'):
case MKTAG('h','v','c','1'):
ret = heif_add_stream(c, c->heif_item[idx]);
if (ret < 0)