From: James Almer via ffmpeg-devel <ffmpeg-devel@ffmpeg.org> To: ffmpeg-devel@ffmpeg.org Cc: James Almer <code@ffmpeg.org> Subject: [FFmpeg-devel] [PATCH] avformat/mccenc: use Lavf version string instead of FFmpeg (PR #20655) Date: Mon, 06 Oct 2025 13:34:58 -0000 Message-ID: <175975769912.65.17039490683985091812@bf249f23a2c8> (raw) PR #20655 opened by James Almer (jamrial) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20655 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20655.patch The muxed subtitle is created by libavformat, and as such that's what should be reported. This is in line with the string we write for every other muxer. After this change, the muxer will no longer be recompiled every time a commit is made. >From 84f14baa5c9ad26e35e84f385fb6ae708adb989e Mon Sep 17 00:00:00 2001 From: James Almer <jamrial@gmail.com> Date: Mon, 6 Oct 2025 10:32:15 -0300 Subject: [PATCH] avformat/mccenc: use Lavf version string instead of FFmpeg The muxed subtitle is created by libavformat, and as such that's what should be reported. This is in line with the string we write for every other muxer. After this change, the muxer will no longer be recompiled every time a commit is made. Signed-off-by: James Almer <jamrial@gmail.com> --- libavformat/mccenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/mccenc.c b/libavformat/mccenc.c index c64d53805d..1c291f75b2 100644 --- a/libavformat/mccenc.c +++ b/libavformat/mccenc.c @@ -23,6 +23,7 @@ #include "avformat.h" #include "internal.h" #include "mux.h" +#include "version.h" #include "libavcodec/codec_id.h" #include "libavcodec/smpte_436m.h" @@ -30,7 +31,6 @@ #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/error.h" -#include "libavutil/ffversion.h" #include "libavutil/log.h" #include "libavutil/macros.h" #include "libavutil/opt.h" @@ -125,9 +125,9 @@ static int mcc_write_header(AVFormatContext *avf) const char *creation_program = mcc->creation_program; if (!creation_program) { if (avf->flags & AVFMT_FLAG_BITEXACT) - creation_program = "FFmpeg"; + creation_program = "Lavf"; else - creation_program = "FFmpeg version " FFMPEG_VERSION; + creation_program = LIBAVFORMAT_IDENT; } else if (strchr(creation_program, '\n')) { av_log(avf, AV_LOG_FATAL, "creation_program must not contain multiple lines of text\n"); return AVERROR(EINVAL); -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
reply other threads:[~2025-10-06 13:35 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=175975769912.65.17039490683985091812@bf249f23a2c8 \ --to=ffmpeg-devel@ffmpeg.org \ --cc=code@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror http://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ http://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git