diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-08-22 23:45:13 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-08-22 23:45:14 +0200 |
| commit | 5980cee25f537c54fc1155de5492bddd92bfa338 (patch) | |
| tree | 4f9e87de2571fc6fdfdfe7ca8c1a5dd2102ce7a1 /src/h_align.cc | |
| parent | ac449700a47c164bf09ee2b0c18486ed255ca20f (diff) | |
Accept any case for subtitle alignment specifiers (#2602).v1.8.78
SMPTE seems pretty clear to me that these should be lower case, but
counterexamples have been seen in the wild and it seems to make
sense to allow them.
Perhaps the verifier should raise an error with non-lower-case
examples.
Diffstat (limited to 'src/h_align.cc')
| -rw-r--r-- | src/h_align.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/h_align.cc b/src/h_align.cc index 7169fb04..71e775cf 100644 --- a/src/h_align.cc +++ b/src/h_align.cc @@ -60,6 +60,8 @@ dcp::halign_to_string(HAlign h) HAlign dcp::string_to_halign(string s) { + transform(s.begin(), s.end(), s.begin(), ::tolower); + if (s == "left") { return HAlign::LEFT; } else if (s == "center") { |
