Skip to content

mkv-audit: "No clear main track" subtitle failure is unreachable #308

Backlog

Description

@robrich82

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

  1. added
    bug
    on Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions