You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mkv-audit: "No clear main track" subtitle failure is unreachable #308
mkv-audit/analyzer.go:563-588: the else if len(subTracks) > 1 branch can't be reached, so res.Failed = true / "No clear %s main track" never fires.
The fallback added in 9680313 puts every non-forced subtitle into mainCands when none qualified. After it, either mainCands is non-empty (first branch) or every track is forced, so forcedCands is non-empty (second branch).
Effect: when no subtitle of a language has a codec in subPriority, the file isn't failed. The first main candidate becomes the default instead.
Decide which behaviour is wanted:
Restore the failure: check codec priority inside the mainCands branch.
Or keep the current behaviour and delete the dead branch.
Found while reviewing #306. That PR couldn't pin the order of res.Failed before a kill because of this.
Activity