pub static CODEC_REGEX: Lazy<Regex>Expand description
Codec detector. Ported from QualityParser.cs:56-57.
Named groups: x264, h264, xvidhd, xvid, divx. Case-insensitive
(IgnoreCase in C# → (?i) flag here). Note that the C# pattern uses
the literal Xvid (no hyphen variant), so this port matches Xvid and
xvid (case-insensitive) but NOT X-vid. The plan-spec drafted
X-?vid; C# is authoritative per the m50 standing rules, so we keep
the C# form.