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:
+2
-4
@@ -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)?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user