This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 326808ad2f5b1ef784ee8d16042dd3b1d97d79aa Author: Leo Izen <[email protected]> AuthorDate: Sat Apr 4 11:41:20 2026 -0400 Commit: Leo Izen <[email protected]> CommitDate: Fri May 1 07:40:24 2026 -0400 avcodec/exif.c: add check for singular displaymatrix data If av_exif_matrix_to_orientation returns 0, then the display matrix is singular. In this case we should treat it as 1 and print a warning. Signed-off-by: Leo Izen <[email protected]> --- libavcodec/exif.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/exif.c b/libavcodec/exif.c index c69a581abc..c8e41bc99f 100644 --- a/libavcodec/exif.c +++ b/libavcodec/exif.c @@ -1394,6 +1394,10 @@ int ff_exif_sanitize_ifd(void *logctx, const AVFrame *frame, AVExifMetadata *ifd if (sd_orient) orientation = av_exif_matrix_to_orientation((int32_t *) sd_orient->data); + if (!orientation) { + av_log(logctx, AV_LOG_WARNING, "display matrix is singular\n"); + orientation = 1; + } if (orientation != 1) av_log(logctx, AV_LOG_DEBUG, "matrix contains nontrivial EXIF orientation: %" PRIu64 "\n", orientation); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
