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/v_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/v_align.cc')
| -rw-r--r-- | src/v_align.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/v_align.cc b/src/v_align.cc index 013cccf1..de92dcdf 100644 --- a/src/v_align.cc +++ b/src/v_align.cc @@ -60,6 +60,8 @@ dcp::valign_to_string (VAlign v) VAlign dcp::string_to_valign (string s) { + transform(s.begin(), s.end(), s.begin(), ::tolower); + if (s == "top") { return VAlign::TOP; } else if (s == "center") { |
