Limit name part of DCI name to 14 characters.
authorCarl Hetherington <cth@carlh.net>
Tue, 16 Oct 2012 15:20:40 +0000 (16:20 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 16 Oct 2012 15:20:40 +0000 (16:20 +0100)
src/lib/film_state.cc

index 6f1c47fea11cb40a117551b770d05b03276e00c2..ca43790f23edc9179c476df5bad53a0c7941d405 100644 (file)
@@ -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) {