mux: single source of truth for the version label (VERSION_LABEL/MUX_APP)

The CLI --version, the MKV muxing/writing-application field, and the FVI generator
all derive from one libfreemkv const, so a binary reports the exact same label it
stamps into the files it produces — no split-brain where an MKV claims one version
and the binary another.
This commit is contained in:
Matthew Jackson
2026-06-26 21:33:19 -07:00
parent 78f78d285e
commit aefd6b6342
2 changed files with 16 additions and 4 deletions
+2 -4
View File
@@ -773,10 +773,8 @@ impl<W: Write + Seek> MkvMuxer<W> {
}
// Stamp the freemkv version so any muxed file is traceable to the build
// that produced it (MediaInfo "Writing application"/"library").
const FREEMKV_MUX_APP: &str =
concat!("freemkv ", env!("FREEMKV_VERSION"), env!("GIT_SUFFIX"));
ebml::write_string(&mut writer, ebml::MUXING_APP, FREEMKV_MUX_APP)?;
ebml::write_string(&mut writer, ebml::WRITING_APP, FREEMKV_MUX_APP)?;
ebml::write_string(&mut writer, ebml::MUXING_APP, crate::MUX_APP)?;
ebml::write_string(&mut writer, ebml::WRITING_APP, crate::MUX_APP)?;
if let Some(t) = title {
ebml::write_string(&mut writer, ebml::TITLE, t)?;
}