mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-09 11:50:16 +00:00
GUI: header editor: track empty track language elements as "und"
See #1929.
This commit is contained in:
parent
955eae59bf
commit
49a25e25be
3
NEWS.md
3
NEWS.md
@ -14,6 +14,9 @@
|
||||
default duration header field. Fixes #1916.
|
||||
* mkvmerge: Matroska input: invalid track language elements are now treated as
|
||||
if they were set to `und` = "undetermined". See #1929 for context.
|
||||
* MKVToolNix GUI, header editor: empty track language elements are now treated
|
||||
the same as those set to invalid ISO 639-2 codes: as if they were set to
|
||||
`und` = "undetermined". See #1929 for context.
|
||||
|
||||
## Build system changes
|
||||
|
||||
|
@ -584,6 +584,9 @@ is_popular_language_code(std::string const &code) {
|
||||
int
|
||||
map_to_iso639_2_code(std::string const &s,
|
||||
bool allow_short_english_name) {
|
||||
if (s.empty())
|
||||
return -1;
|
||||
|
||||
auto source = s;
|
||||
auto deprecated_code = s_deprecated_1_and_2_codes.find(source);
|
||||
if (deprecated_code != s_deprecated_1_and_2_codes.end())
|
||||
|
Loading…
Reference in New Issue
Block a user