Another fix for dcpomatic_create with image sequences.
authorCarl Hetherington <cth@carlh.net>
Fri, 7 Jul 2017 20:08:57 +0000 (21:08 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 7 Jul 2017 20:08:57 +0000 (21:08 +0100)
src/tools/dcpomatic_create.cc

index 6cf4a9c643f5a7b35ee346a48440c4151367b9cb..a9d1165f14c02a563d93ca268974c2544a0050c0 100644 (file)
@@ -269,7 +269,7 @@ main (int argc, char* argv[])
                ContentList content = film->content ();
                for (ContentList::iterator i = content.begin(); i != content.end(); ++i) {
                        shared_ptr<ImageContent> ic = dynamic_pointer_cast<ImageContent> (*i);
-                       if (ic) {
+                       if (ic && ic->still()) {
                                ic->video->set_length (still_length * 24);
                        }
                }