Skip to content

Commit 291ec0f

Browse files
ricerajamrial
authored andcommitted
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]>
1 parent fb163eb commit 291ec0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libavformat/mov.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8840,6 +8840,7 @@ static int mov_read_infe(MOVContext *c, AVIOContext *pb, MOVAtom atom, int idx)
88408840

88418841
switch (item_type) {
88428842
case MKTAG('a','v','0','1'):
8843+
case MKTAG('j','p','e','g'):
88438844
case MKTAG('h','v','c','1'):
88448845
ret = heif_add_stream(c, c->heif_item[idx]);
88458846
if (ret < 0)

0 commit comments

Comments
 (0)