Skip to content

Matroska: preserve LanguageIETF priority regardless of element order - #2645

Open
maghuro wants to merge 1 commit into
MediaArea:masterfrom
maghuro:fix/matroska-languageietf-priority
Open

Matroska: preserve LanguageIETF priority regardless of element order#2645
maghuro wants to merge 1 commit into
MediaArea:masterfrom
maghuro:fix/matroska-languageietf-priority

Conversation

@maghuro

@maghuro maghuro commented Jul 1, 2026

Copy link
Copy Markdown

Summary

Preserves a Matroska track's LanguageIETF value regardless of whether the legacy Language element appears before or after it.

LanguageIETF is now handled separately and takes precedence over Language for the current TrackEntry.

This applies consistently to video, audio and text tracks.

Why

Previously, both elements used the same handler. When LanguageIETF appeared first, a later legacy Language element could overwrite a specific BCP 47 tag such as en-US with eng / en.

Validation

  • Confirmed the change is limited to the Matroska parser.
  • Preserved the repository's CRLF line endings.
  • git diff --check passes.

Related to MediaArea/MediaInfo#1295

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant