1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

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 <erj@erj.cc>
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Eric Joyner
2025-07-16 19:30:02 -07:00
committed by James Almer
parent fb163eb28b
commit 291ec0faf3

View File

@ -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)