[FFmpeg-devel] [PATCH 0/2] Fix Nikon HEIF decoding error

Eric Joyner erj at erj.cc
Thu Jul 17 05:30:00 EEST 2025


This patch set was motivated by ffmpeg being unable to open .HIF files
from a Nikon Z6 III camera because it would always fail with an error
involving thumbnails; probably due to them including three.

With these changes, ffprobe/ffmpeg will no longer
error out on those types of files.

I ran "make fate" on these commits, and was able to extract the thumbnail
streams and encode them as pngs or jpegs, too.

Eric Joyner (2):
  libavformat: Support multiple thumbnails in HEIF
  libavformat: Enable jpeg streams in HEIF MOVContext

 libavformat/isom.h |  3 ++-
 libavformat/mov.c  | 25 ++++++++++++++++++-------
 2 files changed, 20 insertions(+), 8 deletions(-)

-- 
2.49.0.windows.1



More information about the ffmpeg-devel mailing list