summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-16 16:20:40 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-16 16:20:40 +0100
commit60df561ea1c0e9dc108b6f117fa544df034489b0 (patch)
tree3a47e536b166c07946bd26df47a88bc2e4b43749 /src
parent6d45d4e3e52e60e63d5b1f238d9d71ca73e6a274 (diff)
Limit name part of DCI name to 14 characters.
Diffstat (limited to 'src')
-rw-r--r--src/lib/film_state.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/film_state.cc b/src/lib/film_state.cc
index 6f1c47fea..ca43790f2 100644
--- a/src/lib/film_state.cc
+++ b/src/lib/film_state.cc
@@ -367,6 +367,10 @@ FilmState::dci_name () const
}
}
+ if (fixed_name.length() > 14) {
+ fixed_name = fixed_name.substr (0, 14);
+ }
+
d << fixed_name << "_";
if (dcp_content_type) {