Files
libfreemkv/docs/clpi-audit.md
T
Matthew Jackson 6e14fc0c0c libfreemkv: 1.7.0 groundwork — sector-recycle soundness + CI hardening
Security
- Remove the unsafe Vec::set_len over recycled sector buffers — UB reachable
  from safe code (GHSA-j8ww-f5fg-9pmh, low). Uses Vec::resize; pooling unchanged.

CI / tooling
- clippy on stable with the MSRV single-sourced from Cargo.toml; cargo-deny
  dependency-audit gate with first-party git sources allowed (#15); audience-based
  comment-guard (#17).

Docs
- README (keydb ownership, BD-J parser count), drive-access transport/reset
  notes, mux timeline module-doc links.
2026-09-02 12:40:55 -07:00

798 B

CLPI vs MPLS cross-validation diagnostic

src/labels/clpi_audit.rs walks both per-clip CLPI program info and per-playlist MPLS STN tables, normalizes their stream lists by (PID, language, coding_type), and classifies each PID into one of four buckets:

  1. CLPI only — a stream present in a .clpi ProgramInfo that no playlist STN table references (orphan on disc).
  2. MPLS only — a stream a playlist references that no .clpi ProgramInfo lists (indicates a parser disagreement).
  3. Match — both sources agree on coding_type and language.
  4. Divergent — both sources see the PID but disagree on coding_type or language.

audit returns a structured ClpiVsMplsAudit report. This is a diagnostic surface only; it does not feed the label-selection pipeline.