This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 317d660281c14707269a7985b45bdd4e45164a7f Author: Leo Izen <[email protected]> AuthorDate: Sat Apr 4 11:35:28 2026 -0400 Commit: Leo Izen <[email protected]> CommitDate: Fri May 1 07:40:24 2026 -0400 avcodec/exif.c: account for header_mode difference on rewrite When determining if we need to rewrite the exif buffer or can pass through as-is, account for a difference in header_mode requested from the one that is used internally. Signed-off-by: Leo Izen <[email protected]> --- libavcodec/exif.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libavcodec/exif.c b/libavcodec/exif.c index 9390532390..c69a581abc 100644 --- a/libavcodec/exif.c +++ b/libavcodec/exif.c @@ -1526,6 +1526,13 @@ int ff_exif_get_buffer(void *logctx, const AVFrame *frame, AVBufferRef **buffer_ goto end; } + /* + * we always have to rewrite if the requested header mode + * does not match the internal header mode, which is always + * AV_EXIF_TIFF_HEADER inside FFmpeg. + */ + rewrite = rewrite || header_mode != AV_EXIF_TIFF_HEADER; + if (rewrite) { ret = av_exif_write(logctx, &ifd, &buffer, header_mode); if (ret < 0) _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
